scsi-disk: fix check for out-of-range LBA
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 Sep 2012 15:54:36 +0000 (17:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Sep 2012 14:12:34 +0000 (16:12 +0200)
commit12ca76fc48081b3a0ad1a70546abfcf198aedfc4
treee90b1b5b27372f04d1f315b3fc3d62ba45a17a5f
parent444bc908611ccaf4512dc37c33ac3b54d873a62b
scsi-disk: fix check for out-of-range LBA

This fix is needed to correctly handle 0-block read and writes.
Without it, a 0-block access at LBA 0 would underflow.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi-disk.c