scsi: be2iscsi: Fix return value in mgmt_open_connection
authorJitendra Bhivare <jitendra.bhivare@broadcom.com>
Tue, 10 Oct 2017 10:48:12 +0000 (16:18 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 Oct 2017 18:18:29 +0000 (14:18 -0400)
mgmt_open_connection is expected to return tag not errno.

In error case, just return invalid tag 0.

Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/be2iscsi/be_mgmt.c

index c73775368d0913805270ae874f54ab1822e332a6..af6ee43c2f2e73612172a79a2da5f2411b097633 100644 (file)
@@ -156,7 +156,7 @@ int mgmt_open_connection(struct beiscsi_hba *phba,
                beiscsi_log(phba, KERN_ERR, BEISCSI_LOG_CONFIG,
                            "BG_%d : unknown addr family %d\n",
                            dst_addr->sa_family);
-               return -EINVAL;
+               return 0;
        }
 
        phwi_ctrlr = phba->phwi_ctrlr;