]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
virtio-net: Stop doing DMA from the stack
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 15 Nov 2015 13:11:00 +0000 (15:11 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 7 Dec 2015 14:10:53 +0000 (16:10 +0200)
commit2ac46030331e2952a56c05bd15d99082fc410088
treecfb66f323c1d3a8a6ae181c7d201dd8ff767bb99
parent527e9316f8ec44bd53d90fb9f611fa7ffff52bb9
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: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Andy Lutomirski <luto@kernel.org>
drivers/net/virtio_net.c