kernel-ark/drivers/scsi/bfa
Jesper Juhl 64b8aa75bc [SCSI] bfa: don't leak mem in bfad_im_bsg_els_ct_request()
If 'drv_fcxp = kzalloc(sizeof(struct bfad_fcxp), GFP_KERNEL);' fails
and returns NULL, then we'll leak the memory allocated to 'bsg_fcpt'
when we jump to 'out:' and the variable subsequently goes out of
scope.

Also remove the cast of the kzalloc() return value. kzalloc() returns
a void* which is implicitly converted, so the explicit cast is
pointless.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2012-02-19 08:09:01 -06:00
..
bfa_core.c [SCSI] bfa: Add support to store driver configuration in flash. 2011-07-27 14:54:03 +04:00
bfa_cs.h
bfa_defs_fcs.h
bfa_defs_svc.h [SCSI] bfa: Revert back the current LUN Masking Implementation. 2012-01-10 17:01:24 -06:00
bfa_defs.h [SCSI] bfa: fix endian and bit field check bug 2011-12-15 10:55:01 +04:00
bfa_fc.h [SCSI] bfa: Revert back the current LUN Masking Implementation. 2012-01-10 17:01:24 -06:00
bfa_fcbuild.c
bfa_fcbuild.h
bfa_fcpim.c [SCSI] bfa: Revert back the current LUN Masking Implementation. 2012-01-10 17:01:24 -06:00
bfa_fcpim.h [SCSI] bfa: Revert back the current LUN Masking Implementation. 2012-01-10 17:01:24 -06:00
bfa_fcs_fcpim.c
bfa_fcs_lport.c
bfa_fcs_rport.c
bfa_fcs.c
bfa_fcs.h
bfa_hw_cb.c
bfa_hw_ct.c
bfa_ioc_cb.c
bfa_ioc_ct.c
bfa_ioc.c [SCSI] bfa: fix endian and bit field check bug 2011-12-15 10:55:01 +04:00
bfa_ioc.h [SCSI] bfa: Add support to store driver configuration in flash. 2011-07-27 14:54:03 +04:00
bfa_modules.h [SCSI] bfa: Add support to store driver configuration in flash. 2011-07-27 14:54:03 +04:00
bfa_plog.h
bfa_port.c
bfa_port.h
bfa_svc.c [SCSI] bfa: Introduced initiator based lun masking feature. 2011-07-27 14:55:03 +04:00
bfa_svc.h [SCSI] bfa: Revert back the current LUN Masking Implementation. 2012-01-10 17:01:24 -06:00
bfa.h [SCSI] bfa: Introduced initiator based lun masking feature. 2011-07-27 14:55:03 +04:00
bfad_attr.c [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. 2012-01-10 17:01:24 -06:00
bfad_bsg.c [SCSI] bfa: don't leak mem in bfad_im_bsg_els_ct_request() 2012-02-19 08:09:01 -06:00
bfad_bsg.h [SCSI] bfa: Added support to configure lunmasking 2011-07-27 14:57:31 +04:00
bfad_debugfs.c SCSI updates for post 3.2 merge window 2012-01-10 10:36:08 -08:00
bfad_drv.h [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. 2012-01-10 17:01:24 -06:00
bfad_im.c [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. 2012-01-10 17:01:24 -06:00
bfad_im.h [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. 2012-01-10 17:01:24 -06:00
bfad.c [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. 2012-01-10 17:01:24 -06:00
bfi_ms.h
bfi_reg.h
bfi.h
Makefile