From: Dan Carpenter Date: Tue, 20 Sep 2011 21:21:59 +0000 (+0000) Subject: caif: add error handling for allocation X-Git-Tag: v3.2-rc1~129^2~172 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bb20ed863f8573ecd1956f0ebd2c3d36e6e0585;p=pandora-kernel.git caif: add error handling for allocation The allocation of "phyinfo" wasn't checked, and also the allocation wasn't freed on error paths. Sjur Brændeland pointed out as well that "phy_driver" should be freed on the error path too. Signed-off-by: Dan Carpenter Acked-by: Sjur Brændeland Signed-off-by: David S. Miller --- Reading git-diff-tree failed