]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
virtio_net: don't crash if virtqueue is broken.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 13 Mar 2014 00:53:39 +0000 (11:23 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 13 Mar 2014 00:57:55 +0000 (11:27 +1030)
commita7c58146cf9a782113629021ba5420582fef265e
tree605daa5c14e9b9f343a0fc6061bedd9623c4f62a
parent1f74ef0f2d7d692fcd615621e0e734c3e7771413
virtio_net: don't crash if virtqueue is broken.

A bad implementation of virtio might cause us to mark the virtqueue
broken: we'll dev_err() in that case, and the device is useless, but
let's not BUG_ON().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/net/virtio_net.c