From: Dan Carpenter Date: Fri, 23 Jun 2017 07:02:00 +0000 (+0300) Subject: scsi: bnx2i: missing error code in bnx2i_ep_connect() X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd80d3feb67a7845cbed3df9557ae27ba3afe189;p=pandora-kernel.git scsi: bnx2i: missing error code in bnx2i_ep_connect() commit 1d32a62c74b3bcb69822b0f4745af5410cfec3a7 upstream. If bnx2i_map_ep_dbell_regs() then we accidentally return NULL instead of an error pointer. It results in a NULL dereference in iscsi_if_ep_connect(). Fixes: cf4e6363859d ("[SCSI] bnx2i: Add bnx2i iSCSI driver.") Signed-off-by: Dan Carpenter Reviewed-by: Johannes Thumshirn Signed-off-by: Martin K. Petersen Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed