[SCSI] bnx2fc: Fix panic caused because of incorrect errror handling in create().
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Tue, 30 Aug 2011 22:54:52 +0000 (15:54 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 17 Sep 2011 14:05:33 +0000 (18:05 +0400)
commit013068fa6f65f7037adedc141fbd27afc99ab1bb
treeb2766fb68859ab509f2036d528af7dc85e774e45
parent0cbf32e1681d870632a1772601cbaadd996dc978
[SCSI] bnx2fc: Fix panic caused because of incorrect errror handling in create().

Driver incorrectly calls bnx2fc_interface_cleanup() when bnx2fc_if_create fails
which accesses bad pointer. Handle bnx2fc_if_create failure by directly calling
bnx2fc_net_cleanup.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c