mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 13:16:22 +00:00
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>
This commit is contained in:
parent
1f6fa8f817
commit
b168fe8cfe
@ -2942,7 +2942,7 @@ static int transport_generic_cmd_sequencer(
|
|||||||
|
|
||||||
pr_err("Unsupported SA: 0x%02x\n",
|
pr_err("Unsupported SA: 0x%02x\n",
|
||||||
cmd->t_task_cdb[1] & 0x1f);
|
cmd->t_task_cdb[1] & 0x1f);
|
||||||
goto out_unsupported_cdb;
|
goto out_invalid_cdb_field;
|
||||||
}
|
}
|
||||||
/*FALLTHROUGH*/
|
/*FALLTHROUGH*/
|
||||||
case ACCESS_CONTROL_IN:
|
case ACCESS_CONTROL_IN:
|
||||||
|
Loading…
Reference in New Issue
Block a user