OSDN Git Service

virtio-rng: 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:57 +0000 (11:27 +1030)
commit9914a766174d50eb2343f204fef3ee23dbe07c4c
treeb234adcb592f1fca7b82a761b701a16c129a0280
parent4951cc9083147015338f61a187e072daf02dfd4e
virtio-rng: 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/char/hw_random/virtio-rng.c