]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
usbnet: fix error return code in usbnet_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sat, 12 Oct 2013 06:24:08 +0000 (14:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Oct 2013 19:39:50 +0000 (15:39 -0400)
commit09b69024d97356fb660d1162e172ed4f1be7ceae
tree989493bcb49e36f9adbe4096ebf97f8a416ad821
parent725907827a7f46dfb5df6e4f3d8f9bcbc9903877
usbnet: fix error return code in usbnet_probe()

Fix to return -ENOMEM in the padding pkt alloc fail error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c