diff options
-rw-r--r-- | drivers/target/target_core_xcopy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/target/target_core_xcopy.c b/drivers/target/target_core_xcopy.c index 5edcd2bebee8..0e41143fc16e 100644 --- a/drivers/target/target_core_xcopy.c +++ b/drivers/target/target_core_xcopy.c | |||
@@ -679,7 +679,8 @@ static int target_xcopy_issue_pt_cmd(struct xcopy_pt_cmd *xpt_cmd) | |||
679 | 679 | ||
680 | pr_debug("target_xcopy_issue_pt_cmd(): SCSI status: 0x%02x\n", | 680 | pr_debug("target_xcopy_issue_pt_cmd(): SCSI status: 0x%02x\n", |
681 | se_cmd->scsi_status); | 681 | se_cmd->scsi_status); |
682 | return 0; | 682 | |
683 | return (se_cmd->scsi_status) ? -EINVAL : 0; | ||
683 | } | 684 | } |
684 | 685 | ||
685 | static int target_xcopy_read_source( | 686 | static int target_xcopy_read_source( |