virtio_blk: verify if queue is broken after virtqueue_get_buf()
authorHeinz Graalfs <graalfs@linux.vnet.ibm.com>
Mon, 28 Oct 2013 23:10:30 +0000 (09:40 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 29 Oct 2013 00:58:17 +0000 (11:28 +1030)
commit7f03b17d5c3f3b63dcacf0e481cf94c9d07267ab
tree338af05a9b2456350b84858b314d101c9c71fc5a
parentb3b32c94133621c9ba7e4c8f29ec7533f2f4d8ec
virtio_blk: verify if queue is broken after virtqueue_get_buf()

In case virtqueue_get_buf() returned with a NULL pointer verify if the
virtqueue is broken in order to leave while loop.

Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/block/virtio_blk.c