]> git.hungrycats.org Git - linux/commit
r8152: handle the return value of usb_reset_device()
authorChih Kai Hsu <hsu.chih.kai@realtek.com>
Thu, 4 Jun 2026 09:22:47 +0000 (17:22 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 9 Jun 2026 09:05:35 +0000 (11:05 +0200)
commit19440600e729d4f74a42591a872099cf25c7d28a
treeaa88453485536e8804e0a736557f89fb6d04f019
parentee30dd2909d8b98619f4341c70ec8dc8e155ab02
r8152: handle the return value of usb_reset_device()

If usb_reset_device() returns a negative error code, stop the
process of probing.

Fixes: 10c3271712f5 ("r8152: disable the ECM mode")
Signed-off-by: Chih Kai Hsu <hsu.chih.kai@realtek.com>
Reviewed-by: Hayes Wang <hayeswang@realtek.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20260604092247.27158-450-nic_swsd@realtek.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/usb/r8152.c