projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbf344e
)
target: Fix sense data for out-of-bounds IO operations
author
Roland Dreier
<roland@purestorage.com>
Fri, 8 Feb 2013 23:18:38 +0000
(15:18 -0800)
committer
Nicholas Bellinger
<nab@linux-iscsi.org>
Wed, 13 Feb 2013 19:54:50 +0000
(11:54 -0800)
We're supposed to return LOGICAL BLOCK ADDRESS OUT OF RANGE, not
INVALID FIELD IN CDB.
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c
patch
|
blob
|
history
diff --git
a/drivers/target/target_core_sbc.c
b/drivers/target/target_core_sbc.c
index
a664c66
..
170f1f7
100644
(file)
--- a/
drivers/target/target_core_sbc.c
+++ b/
drivers/target/target_core_sbc.c
@@
-486,7
+486,7
@@
sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops)
*/
if (cmd->t_task_lba || sectors) {
if (sbc_check_valid_sectors(cmd) < 0)
- return TCM_
INVALID_CDB_FIELD
;
+ return TCM_
ADDRESS_OUT_OF_RANGE
;
}
cmd->execute_cmd = ops->execute_sync_cache;
break;