diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-07-07 19:23:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-08 00:21:23 -0400 |
commit | ffdce2cc6a18e3460fd31a399934004bf4cf6539 (patch) | |
tree | 995647ca7efe3a7c9c8fd369c2dd66334122099b /arch/x86/crypto/camellia-aesni-avx-asm_64.S | |
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>
Diffstat (limited to 'arch/x86/crypto/camellia-aesni-avx-asm_64.S')
0 files changed, 0 insertions, 0 deletions