scsi: qedi: Fix return code in qedi_ep_connect()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 12 Jul 2017 07:31:21 +0000 (10:31 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 25 Jul 2017 02:24:29 +0000 (22:24 -0400)
commit2c67521821acd900d7508f37e49d0b494011106d
treebae372ccda78655469a55e9e4625ccf98cf9a885
parentcd069bb9f9ff13b23492fda6ccdb458ac4f641ca
scsi: qedi: Fix return code in qedi_ep_connect()

We shouldn't be writing over the "ret" variable.  It means we return
ERR_PTR(0) which is NULL and it results in a NULL dereference in the
caller.

Fixes: ace7f46ba5fd ("scsi: qedi: Add QLogic FastLinQ offload iSCSI driver framework.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedi/qedi_iscsi.c