From: Russell King Date: Mon, 7 Jul 2014 23:23:30 +0000 (+0100) Subject: net: fec: fix missing kmalloc() failure check in fec_enet_alloc_buffers() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~222^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffdce2cc6a18e3460fd31a399934004bf4cf6539;p=pandora-kernel.git net: fec: fix missing kmalloc() failure check in fec_enet_alloc_buffers() fec_enet_alloc_buffers() assumes that kmalloc() will never fail, which is an invalid assumption. Fix this by implementing a common error cleanup path, and use it to also clean up after failed bounce buffer allocation. Acked-by: Fugang Duan Signed-off-by: Russell King Signed-off-by: David S. Miller --- Reading git-diff-tree failed