target: Fix sense code for unsupported SERVICE ACTION IN
authorRoland Dreier <roland@purestorage.com>
Wed, 14 Mar 2012 17:40:43 +0000 (10:40 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 16 Mar 2012 02:14:53 +0000 (19:14 -0700)
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>
drivers/target/target_core_transport.c

index ba8eb83..4a112b6 100644 (file)
@@ -2942,7 +2942,7 @@ static int transport_generic_cmd_sequencer(
 
                        pr_err("Unsupported SA: 0x%02x\n",
                                cmd->t_task_cdb[1] & 0x1f);
-                       goto out_unsupported_cdb;
+                       goto out_invalid_cdb_field;
                }
                /*FALLTHROUGH*/
        case ACCESS_CONTROL_IN: