android_kernel_motorola_sm6225/drivers/scsi/mpt2sas
Roland Dreier c24a1710d1 [SCSI] mpt2sas: Fix leak on mpt2sas_base_attach() error path
Commit 911ae9434f ("[SCSI] mpt2sas: Added NUNA IO support in driver
which uses multi-reply queue support of the HBA") added new
allocations to the beginning of mpt2sas_base_attach(), which means
directly returning an error on failure of mpt2sas_base_map_resources()
will leak those allocations.

Fix this by doing "goto out_free_resources" in this place too, as the
rest of the function does.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Acked-by: "Nandigama, Nagalakshmi" <Nagalakshmi.Nandigama@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2011-12-15 10:57:40 +04:00
..
mpi [SCSI] mpt2sas: MPI next revision header update 2011-12-15 10:57:38 +04:00
Kconfig [SCSI] mpt2sas: Copyright 2010. 2010-04-11 09:24:02 -05:00
Makefile [SCSI] mpt2sas v00.100.11.15 2009-03-13 16:08:49 -05:00
mpt2sas_base.c [SCSI] mpt2sas: Fix leak on mpt2sas_base_attach() error path 2011-12-15 10:57:40 +04:00
mpt2sas_base.h [SCSI] mpt2sas : Bump driver vesion to 12.100.00.00 2011-12-15 10:57:39 +04:00
mpt2sas_config.c [SCSI] mpt2sas: Fix for Panic when inactive volume is tried deleting 2011-10-30 12:56:55 +04:00
mpt2sas_ctl.c [SCSI] mpt2sas: Rearrange the the code so that the completion queues are initialized prior to sending the request to controller firmware 2011-12-15 10:57:32 +04:00
mpt2sas_ctl.h [SCSI] mpt2sas : WarpDrive New product SSS6200 support added 2011-05-01 10:36:54 -05:00
mpt2sas_debug.h [SCSI] mpt2sas: Fixed Big Indian Issues on 32 bit PPC 2011-06-29 16:07:00 -05:00
mpt2sas_scsih.c [SCSI] mpt2sas : Fix for memory allocation error for large host credits 2011-12-15 10:57:39 +04:00
mpt2sas_transport.c [SCSI] mpt2sas: Rearrange the the code so that the completion queues are initialized prior to sending the request to controller firmware 2011-12-15 10:57:32 +04:00