Commit dc89548c authored by Miaoqian Lin's avatar Miaoqian Lin Committed by Jakub Kicinski
Browse files

net: usb: asix_devices: Check return value of usbnet_get_endpoints



The code did not check the return value of usbnet_get_endpoints.
Add checks and return the error if it fails to transfer the error.

Found via static anlaysis and this is similar to
commit 07161b24 ("sr9800: Add check for usbnet_get_endpoints").

Fixes: 933a27d3 ("USB: asix - Add AX88178 support and many other changes")
Fixes: 2e55cc72 ("[PATCH] USB: usbnet (3/9) module for ASIX Ethernet adapters")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Link: https://patch.msgid.link/20251026164318.57624-1-linmq006@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent ac345c5f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment