Commit e7ee9ce2 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Greg Kroah-Hartman

target: use correct sense code for LUN communication failure

commit 18a9df42 upstream.

The ASC/ASCQ code for 'Logical Unit Communication failure' is
0x08/0x00; 0x80/0x00 is vendor specific.
Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
Cc: Nicholas Bellinger <nab@risingtidesystems.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3cfafe0f
...@@ -3024,7 +3024,7 @@ int transport_send_check_condition_and_sense( ...@@ -3024,7 +3024,7 @@ int transport_send_check_condition_and_sense(
/* ILLEGAL REQUEST */ /* ILLEGAL REQUEST */
buffer[SPC_SENSE_KEY_OFFSET] = ILLEGAL_REQUEST; buffer[SPC_SENSE_KEY_OFFSET] = ILLEGAL_REQUEST;
/* LOGICAL UNIT COMMUNICATION FAILURE */ /* LOGICAL UNIT COMMUNICATION FAILURE */
buffer[SPC_ASC_KEY_OFFSET] = 0x80; buffer[SPC_ASC_KEY_OFFSET] = 0x08;
break; break;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment