OSDN Git Service

virtio_balloon: don't crash if virtqueue is broken.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 13 Mar 2014 00:53:40 +0000 (11:23 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 13 Mar 2014 00:57:56 +0000 (11:27 +1030)
commit4951cc9083147015338f61a187e072daf02dfd4e
tree600821ce6f9733fec02bac2b8d188f8a9d11a7b0
parent5261b85e586afe6ebe54e16e0a8acc32fc6d4902
virtio_balloon: 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().

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