scsi: bnx2fc: Fix NULL dereference in error handling
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 1 Nov 2018 05:25:30 +0000 (08:25 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 8 Dec 2018 03:23:41 +0000 (22:23 -0500)
commit9ae4f8420ed7be4b13c96600e3568c144d101a23
treefde8005b2163ebd820874638ba6ff552b642cc78
parentc64a87f9518409d0a439895f09f6149ffdd427b8
scsi: bnx2fc: Fix NULL dereference in error handling

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>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c