diff options
author | Jitendra Bhivare <jitendra.bhivare@broadcom.com> | 2017-10-10 16:18:12 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-10-11 14:18:29 -0400 |
commit | 8dd998e6e94ed6b94f001f4ed37ca9c9120ee257 (patch) | |
tree | 7ec0229e490b41fb93e3879929fb23eb1fa4e4d0 /drivers/scsi/be2iscsi/be_mgmt.c | |
parent | 8d9ecd49426c95ccb986d8111bbbf19920a231fe (diff) | |
download | linux-stable-8dd998e6e94ed6b94f001f4ed37ca9c9120ee257.tar.gz linux-stable-8dd998e6e94ed6b94f001f4ed37ca9c9120ee257.tar.bz2 linux-stable-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/scsi/be2iscsi/be_mgmt.c')
-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; |