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>
This commit is contained in:
parent
8d9ecd4942
commit
8dd998e6e9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue