]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Nov 2021 18:46:11 +0000 (19:46 +0100)
commit2f1d1c1ec7c8586cb3a4279d9f7835d054791f99
tree6a97d85721d67b8a36d6bf0e30354b2f9fb95d79
parentc99652612c36dc03733639bf0a05e5fa480cc4ea
usbnet: fix error return code in usbnet_probe()

commit 6f7c88691191e6c52ef2543d6f1da8d360b27a24 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/usbnet.c