aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/proc_net.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <[email protected]>2018-04-20 17:24:23 +0000
committerMichael S. Tsirkin <[email protected]>2018-04-25 17:41:16 +0000
commita7a69ec0d8e4a58be7db88d33cbfa2912807bb2b (patch)
tree01374a64530550c86ddf3bc55b55c9366dbdb62d /fs/proc/proc_net.c
parentvirtio: add ability to iterate over vqs (diff)
downloadkernel-a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b.tar.gz
kernel-a7a69ec0d8e4a58be7db88d33cbfa2912807bb2b.zip
virtio_console: free buffers after reset
Console driver is out of spec. The spec says: A driver MUST NOT decrement the available idx on a live virtqueue (ie. there is no way to “unexpose” buffers). and it does exactly that by trying to detach unused buffers without doing a device reset first. Defer detaching the buffers until device unplug. Of course this means we might get an interrupt for a vq without an attached port now. Handle that by discarding the consumed buffer. Reported-by: Tiwei Bie <[email protected]> Fixes: b3258ff1d6 ("virtio: Decrement avail idx on buffer detach") Cc: [email protected] Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'fs/proc/proc_net.c')
0 files changed, 0 insertions, 0 deletions