From: Roland Dreier Date: Thu, 1 Dec 2011 01:14:22 +0000 (-0800) Subject: [SCSI] mpt2sas: Fix leak on mpt2sas_base_attach() error path X-Git-Tag: v3.3-rc1~124^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c24a1710d18d706ee2bbd87390868242f1a6d8d5;p=pandora-kernel.git [SCSI] mpt2sas: Fix leak on mpt2sas_base_attach() error path Commit 911ae9434f83 ("[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 Acked-by: "Nandigama, Nagalakshmi" Signed-off-by: James Bottomley --- Reading git-diff-tree failed