be2iscsi: Fix return value for MCC completion
authorJitendra Bhivare <jitendra.bhivare@avagotech.com>
Wed, 20 Jan 2016 08:40:55 +0000 (14:10 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
Change return value of completed MCC EBUSY to EINVAL.

Signed-off-by: Jitendra Bhivare <jitendra.bhivare@avagotech.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/be2iscsi/be_cmds.c

index 533060e12c7f10bd1a51328ef8b6477abe98a0fb..dbe62c0e6916752b72f69c9e883c1ab9e1407cbf 100644 (file)
@@ -323,7 +323,7 @@ static int be_mcc_compl_process(struct be_ctrl_info *ctrl,
                        if (resp_hdr->response_length)
                                return 0;
                }
-               return -EBUSY;
+               return -EINVAL;
        }
        return 0;
 }