target/sbc: Check that the LBA and number of blocks are correct in VERIFY
authorChristophe Vu-Brugier <cvubrugier@yahoo.fr>
Tue, 10 Jun 2014 15:53:22 +0000 (17:53 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 11 Jun 2014 18:52:40 +0000 (11:52 -0700)
commitc52716defd6ec7e89c510c740de7ec3478008f28
tree43c0534aa3289555eac9ab3b231ffcdef9cf59d0
parent6ef31dc720cff4dc6a67ccb8c73c56dbf2ea6a08
target/sbc: Check that the LBA and number of blocks are correct in VERIFY

This patch extracts LBA + sectors for VERIFY, and adds a goto check_lba
to perform the end-of-device checking.

(Update patch to drop lba_check usage - nab)

Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c