aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2011-08-10 00:59:58 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2011-08-22 19:26:26 +0000
commit01cde4d54327884a0b61ce8666092f5703557d4b (patch)
treeec692d6516775c8362cacd0788f4374c62e9d56f /Makefile
parent7abbe7f3e4243e28a9169ee1b8d76f10a6f5d37c (diff)
target: Add missing DATA_SG_IO transport_cmd_get_valid_sectors check
This patch adds the missing transport_cmd_get_valid_sectors() check for SCF_SCSI_DATA_SG_IO_CDB type payloads to ensure that a received LBA + range does not exeed past the end of associated backend struct se_device. This patch also fixes a bug in the failure path of transport_new_cmd_obj() where this check can fail, so change to use a signed 'rc' and return '-EINVAL' to signal proper transport_generic_request_failure() handling. Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions