From: Jitendra Bhivare Date: Tue, 10 Oct 2017 10:48:12 +0000 (+0530) Subject: scsi: be2iscsi: Fix return value in mgmt_open_connection X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=8dd998e6e94ed6b94f001f4ed37ca9c9120ee257;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Martin K. Petersen --- 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;