diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2014-03-13 11:23:39 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2014-03-13 11:27:56 +1030 |
commit | 5261b85e586afe6ebe54e16e0a8acc32fc6d4902 (patch) | |
tree | 10ec38ad40d5e80e527b397c9f086d89d7175175 /drivers/virtio | |
parent | a7c58146cf9a782113629021ba5420582fef265e (diff) | |
download | linux-5261b85e586afe6ebe54e16e0a8acc32fc6d4902.tar.gz linux-5261b85e586afe6ebe54e16e0a8acc32fc6d4902.tar.bz2 linux-5261b85e586afe6ebe54e16e0a8acc32fc6d4902.zip |
virtio_blk: don't crash, report error 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_ON().
ENOMEM or ENOSPC implies the ring is full, and we should try again
later (-ENOMEM is documented to happen, but doesn't, as we fall
through to ENOSPC).
EIO means it's broken.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/virtio')
0 files changed, 0 insertions, 0 deletions