]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] bnx2fc: code cleanup in bnx2fc_offload_session
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Fri, 5 Aug 2011 00:38:47 +0000 (17:38 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 24 Aug 2011 03:33:47 +0000 (20:33 -0700)
commite1ed277305942860c24468705a248a2d91e72296
tree227717904658af7c74b0a16ecfc02c287dd8658e
parentef8d915412c652e9cd31841d156d01b6f2bd8024
[SCSI] bnx2fc: code cleanup in bnx2fc_offload_session

- Free session resources before rport logoff
- Do not free session resources in bnx2fc_alloc_session_resc() as it is handled
  in caller's error handling path.
- Do not call bnx2fc_free_session_resc() if bnx2fc_init_tgt() fails as cq_lock
  is not yet initialized.

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