]> git.baikalelectronics.ru Git - kernel.git/commit
net: mediatek: add missing return code check
authorJohn Crispin <john@phrozen.org>
Fri, 10 Jun 2016 11:27:58 +0000 (13:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jun 2016 06:29:28 +0000 (23:29 -0700)
commite0d3234c144ea1b956ca1988f83c384b8c1a190a
tree35ece322f036c00f23f7038088e4e51651f5f87b
parent32a7451dd0f64ff03ae9af38f63beb1750583d63
net: mediatek: add missing return code check

The code fails to check if the scratch memory was properly allocated. Add
this check and return with an error if the allocation failed.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c