]> git.baikalelectronics.ru Git - kernel.git/commit
moxa: fix the error handling in moxart_mac_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 8 Oct 2013 03:19:19 +0000 (11:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Oct 2013 20:33:50 +0000 (16:33 -0400)
commit38307185899b393c6f039f6f7c869ef5c5dfa0d9
tree4e9638f5b0d5dd27832f7ee76e18cc82d126bc3d
parent7d4a5308f04c10d7dd243cce31ba5fb2f08ea049
moxa: fix the error handling in moxart_mac_probe()

This patch fix the error handling in moxart_mac_probe():
 - return -ENOMEM in some memory alloc fail cases
 - add missing free_netdev() in the error handling case

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/moxa/moxart_ether.c