From: Devendra Naga Date: Thu, 25 Oct 2012 06:11:51 +0000 (-0400) Subject: staging: slicoss: fix a leak when kzalloc fail X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~916 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34ec83f4c1dc0d6bf4b056f89841706907a06255;p=pandora-kernel.git staging: slicoss: fix a leak when kzalloc fail slic_card_locate does a kzalloc of physcard, and if it fails, in my previous patch i returned -ENOMEM, but left the driver leak the memory if card_hostid == SLIC_HOSTID_DEFAULT, fix this memory leak if the above condition is true Signed-off-by: Devendra Naga Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed