virtio_console: verify if queue is broken after virtqueue_get_buf()
authorHeinz Graalfs <graalfs@linux.vnet.ibm.com>
Mon, 28 Oct 2013 23:10:39 +0000 (09:40 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 29 Oct 2013 00:58:18 +0000 (11:28 +1030)
commit40e4dc530118dbb79e270d5554ac8415588378d2
tree06582a56e89dc9cb3654de1bdcb9afa6adb5ce94
parent7f03b17d5c3f3b63dcacf0e481cf94c9d07267ab
virtio_console: verify if queue is broken after virtqueue_get_buf()

If virtqueue_get_buf() returns with a NULL pointer it should be verified
if the virtqueue is broken, in order to avoid loop calling cpu_relax().

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