From: Johan Hovold <johan@kernel.org> Date: 2021-10-26 11:54:58
On Tue, Oct 26, 2021 at 07:25:26PM +0800, Wang Hai wrote:
Return error code if usb_maxpacket() returns 0 in usbnet_probe().
Fixes: 397430b50a36 ("usbnet: sanity check for maxpacket")
Reported-by: Hulk Robot <redacted>
Signed-off-by: Wang Hai <redacted>
---
Good catch. This is embarrassing. I double checked the error path but
failed to notice the missing return value.
On Tue, Oct 26, 2021 at 07:25:26PM +0800, Wang Hai wrote:
quoted
Return error code if usb_maxpacket() returns 0 in usbnet_probe().
Fixes: 397430b50a36 ("usbnet: sanity check for maxpacket")
Reported-by: Hulk Robot <redacted>
Signed-off-by: Wang Hai <redacted>
---
Good catch. This is embarrassing. I double checked the error path but
failed to notice the missing return value.