commit | ffdce2cc6a18e3460fd31a399934004bf4cf6539 | [log] [tgz] |
---|---|---|
author | Russell King <rmk+kernel@arm.linux.org.uk> | Tue Jul 08 00:23:30 2014 +0100 |
committer | David S. Miller <davem@davemloft.net> | Mon Jul 07 21:21:23 2014 -0700 |
tree | 995647ca7efe3a7c9c8fd369c2dd66334122099b | |
parent | 8b7c9efa018f96e58fa379ddb8c03f002c4f6a84 [diff] |
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 <B38611@freescale.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>