commit | 627fdfac7808fffdeb64e4d08fa9c74e4acd5d10 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Nov 01 08:25:30 2018 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun Jan 13 10:03:48 2019 +0100 |
tree | 0b44263951cd7e8710f493dd2e448c41ffffa8d9 | |
parent | d013a1cd9c1d1a4d6ed0377ff328e0b633ab6387 [diff] |
scsi: bnx2fc: Fix NULL dereference in error handling [ Upstream commit 9ae4f8420ed7be4b13c96600e3568c144d101a23 ] If "interface" is NULL then we can't release it and trying to will only lead to an Oops. Fixes: aea71a024914 ("[SCSI] bnx2fc: Introduce interface structure for each vlan interface") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>