net: usb: ax88179_178a: Add check for usbnet_get_endpoints()
authorMa Ke <make_ruc2021@163.com>
Wed, 24 Apr 2024 06:56:34 +0000 (14:56 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Apr 2024 01:57:42 +0000 (18:57 -0700)
commit3837639ebfdd9fbb9aa2acfcc1612043d35340fe
tree01ee27fb2fda65a91d668655a5be7cf543668f0e
parent0805d67bc0ef95411228e802f31975cfb7555056
net: usb: ax88179_178a: Add check for usbnet_get_endpoints()

To avoid the failure of usbnet_get_endpoints(), we should check the
return value of the usbnet_get_endpoints().

Signed-off-by: Ma Ke <make_ruc2021@163.com>
Reviewed-by: Hariprasad Kelam <hkelam@marvell.com>
Link: https://lore.kernel.org/r/20240424065634.1870027-1-make_ruc2021@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/ax88179_178a.c