aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2012-03-14 13:40:43 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2012-03-15 22:14:53 -0400
commitb168fe8cfe530daabbdf632af4554600006a81a9 (patch)
treeb64cb6523b11f8d91f24390a8e470ca5d09f1a24 /drivers
parent1f6fa8f8179dd66345d59f067f2a48a86095c499 (diff)
target: Fix sense code for unsupported SERVICE ACTION IN
If we don't handle a given service action, we're supposed to return INVALID FIELD IN CDB, since we do handle the SERVICE ACTION IN opcode. Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/target/target_core_transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
index ba8eb8373032..4a112b6c7f27 100644
--- a/drivers/target/target_core_transport.c
+++ b/drivers/target/target_core_transport.c
@@ -2942,7 +2942,7 @@ static int transport_generic_cmd_sequencer(
2942 2942
2943 pr_err("Unsupported SA: 0x%02x\n", 2943 pr_err("Unsupported SA: 0x%02x\n",
2944 cmd->t_task_cdb[1] & 0x1f); 2944 cmd->t_task_cdb[1] & 0x1f);
2945 goto out_unsupported_cdb; 2945 goto out_invalid_cdb_field;
2946 } 2946 }
2947 /*FALLTHROUGH*/ 2947 /*FALLTHROUGH*/
2948 case ACCESS_CONTROL_IN: 2948 case ACCESS_CONTROL_IN: