Commit bbed2ced authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

scsi: bnx2fc: Fix NULL dereference in error handling



[ Upstream commit 9ae4f842 ]

If "interface" is NULL then we can't release it and trying to will only
lead to an Oops.

Fixes: aea71a02 ("[SCSI] bnx2fc: Introduce interface structure for each vlan interface")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 5ac1f046
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment