]> git.baikalelectronics.ru Git - kernel.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>
Sat, 27 Aug 2011 14:35:44 +0000 (08:35 -0600)
commitc551dc4f648e9e033f3f28365ac5b5ba3d75fb14
tree2a5d289bcdf75d799539dc24a6377469e9bf9cc4
parente67ca29c60a25d96d9bd108f4d204901b36afdd7
[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