diff options
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_xcopy.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/target/target_core_xcopy.c b/drivers/target/target_core_xcopy.c index 6b9774c1dc6c..fe985559eeb8 100644 --- a/drivers/target/target_core_xcopy.c +++ b/drivers/target/target_core_xcopy.c | |||
@@ -911,11 +911,8 @@ sense_reason_t target_do_xcopy(struct se_cmd *se_cmd) | |||
911 | } | 911 | } |
912 | 912 | ||
913 | list_id = p[0]; | 913 | list_id = p[0]; |
914 | if (list_id != 0x00) { | 914 | list_id_usage = (p[1] & 0x18) >> 3; |
915 | pr_err("XCOPY with non zero list_id: 0x%02x\n", list_id); | 915 | |
916 | goto out; | ||
917 | } | ||
918 | list_id_usage = (p[1] & 0x18); | ||
919 | /* | 916 | /* |
920 | * Determine TARGET DESCRIPTOR LIST LENGTH + SEGMENT DESCRIPTOR LIST LENGTH | 917 | * Determine TARGET DESCRIPTOR LIST LENGTH + SEGMENT DESCRIPTOR LIST LENGTH |
921 | */ | 918 | */ |