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)
commit2207d182c14294d78b98142f0b6a16bea5e8b0fb
tree55a028206ea975a31536c86426cf344131cf4663
parent681e9e867ea06219d26f02ae4a93979734b9ad44
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