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)
commit8dd998e6e94ed6b94f001f4ed37ca9c9120ee257
tree7ec0229e490b41fb93e3879929fb23eb1fa4e4d0
parent8d9ecd49426c95ccb986d8111bbbf19920a231fe
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>
drivers/scsi/be2iscsi/be_mgmt.c