From: Dan Carpenter Date: Thu, 22 Jul 2010 01:16:48 +0000 (+0000) Subject: stmmac: handle allocation errors in setup functions X-Git-Tag: v2.6.36-rc1~571^2~132 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ff219068c0e032a6fd64c45bd69f3bc7374feb6;p=pandora-kernel.git stmmac: handle allocation errors in setup functions If the allocations fail in either dwmac1000_setup() or dwmac100_setup() then return NULL. These are called from stmmac_mac_device_setup(). The check for NULL returns in stmmac_mac_device_setup() needed to be moved forward a couple lines. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- Reading git-diff-tree failed