virtio_scsi: verify if queue is broken after virtqueue_get_buf()
authorHeinz Graalfs <graalfs@linux.vnet.ibm.com>
Mon, 11 Nov 2013 01:22:43 +0000 (11:52 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 11 Nov 2013 01:23:26 +0000 (11:53 +1030)
commit2bf4fd31394a3f875ea093ee8a209f30b378cbf3
tree4889f6272a152930d7cc72c2a30c88d55f57ba39
parentcdd77e87eae52b7251acc5990207a1c4500a84ce
virtio_scsi: verify if queue is broken after virtqueue_get_buf()

If virtqueue_get_buf() returned with a NULL pointer avoid a possibly
endless loop by checking for a broken virtqueue.

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