]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
usbnet: fix error return code in usbnet_probe()
authorWang Hai <wanghai38@huawei.com>
Tue, 26 Oct 2021 12:40:15 +0000 (20:40 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 27 Oct 2021 19:06:15 +0000 (12:06 -0700)
commit6f7c88691191e6c52ef2543d6f1da8d360b27a24
tree9735141f2bccfb85e0cc17735a5a702d9c4bf6fb
parentafe8ca110cf4c99dee7b31473eacb56b72944df4
usbnet: fix error return code in usbnet_probe()

Return error code if usb_maxpacket() returns 0 in usbnet_probe()

Fixes: 397430b50a36 ("usbnet: sanity check for maxpacket")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Reviewed-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20211026124015.3025136-1-wanghai38@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/usbnet.c