diff options
author | Jitendra Bhivare <jitendra.bhivare@broadcom.com> | 2017-10-10 12:48:12 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-10-11 20:18:29 +0200 |
commit | 8dd998e6e94ed6b94f001f4ed37ca9c9120ee257 (patch) | |
tree | 7ec0229e490b41fb93e3879929fb23eb1fa4e4d0 /drivers | |
parent | scsi: be2iscsi: Fix boot flags in sysfs (diff) | |
download | linux-8dd998e6e94ed6b94f001f4ed37ca9c9120ee257.tar.xz linux-8dd998e6e94ed6b94f001f4ed37ca9c9120ee257.zip |
scsi: be2iscsi: Fix return value in mgmt_open_connection
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/be2iscsi/be_mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/be2iscsi/be_mgmt.c b/drivers/scsi/be2iscsi/be_mgmt.c index c73775368d09..af6ee43c2f2e 100644 --- a/drivers/scsi/be2iscsi/be_mgmt.c +++ b/drivers/scsi/be2iscsi/be_mgmt.c @@ -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; |