Skip to content
Commit bdfd6304 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c33a39c5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment