]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit227e18c0c7b1a47939348e6453ed975521b986f8
treebae372ccda78655469a55e9e4625ccf98cf9a885
parent501f0c4e4a9acba15c606b2a2df8aaa0908c4057
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: 4b2221d4a390 ("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