From: Jesper Juhl Date: Tue, 31 Jul 2007 07:39:39 +0000 (-0700) Subject: cciss: fix memory leak X-Git-Tag: v2.6.23-rc2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2912a1223c0917a7b4e054f18086209137891ea;p=pandora-kernel.git cciss: fix memory leak There's a memory leak in the cciss driver. in alloc_cciss_hba() we may leak sizeof(ctlr_info_t) bytes if a call to alloc_disk(1 << NWD_SHIFT) fails. This patch should fix the issue. Spotted by the Coverity checker. Signed-off-by: Jesper Juhl Acked-by: Mike Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed