]> git.baikalelectronics.ru Git - kernel.git/commit
net: sxgbe: check memory allocation failure
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Fri, 25 Aug 2017 05:35:51 +0000 (07:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Aug 2017 03:07:07 +0000 (20:07 -0700)
commitf8699c9ed2f1a00259e89d246c9faf1fbb04b9e7
tree55a028206ea975a31536c86426cf344131cf4663
parentc253b054ccc1077f6560530254d884e2777c898b
net: sxgbe: check memory allocation failure

Check memory allocation failure and return -ENOMEM in such a case, as
already done few lines below for another memory allocation.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c