Skip to content
Commit 2ac46030 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

virtio-net: Stop doing DMA from the stack



Once virtio starts using the DMA API, we won't be able to safely DMA
from the stack.  virtio-net does a couple of config DMA requests
from small stack buffers -- switch to using dynamically-allocated
memory.

This should have no effect on any performance-critical code paths.

Reported-by: default avatarAndy Lutomirski <luto@kernel.org>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Tested-by: default avatarAndy Lutomirski <luto@kernel.org>
parent 527e9316
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment