[SCSI] qla2xxx: Cleanse memory allocation logic during probe.
authorAndrew Vasquez <andrew.vasquez@qlogic.com>
Thu, 31 Jan 2008 20:33:48 +0000 (12:33 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 8 Feb 2008 00:02:39 +0000 (18:02 -0600)
commite87110852d0bd331d50c3de686a7fc9626579d60
tree9501f4a06588c14029c6e2487cfdfa0fb710f82e
parent0afb467b4757adb9c6e3817f2e752d658a494352
[SCSI] qla2xxx: Cleanse memory allocation logic during probe.

- Drop loop-till-allocated structure of code within
  qla2x00_mem_alloc().
- Properly unwind deallcations of memory during failures.
- Drop qla2x00_allocate_sp_pool() and qla2x00_free_sp_pool()
  functions as their implementations can easily be collapsed into
  the callers.
- Defer DMA pool allocation of SFP data until requested.

Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/qla2xxx/qla_attr.c
drivers/scsi/qla2xxx/qla_os.c