asix: Add check for usbnet_get_endpoints
authorChen Ni <nichen@iscas.ac.cn>
Wed, 3 Jan 2024 03:35:34 +0000 (03:35 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jan 2024 16:16:53 +0000 (17:16 +0100)
commitba75a06fa273f1ee34543228970fe90235f5121e
tree5af207e39bcb53541986f7a9412bcea1f9e8b7d2
parent67a4a2589db0d43f68c9eda4eab6d03969ae6d5f
asix: Add check for usbnet_get_endpoints

[ Upstream commit eaac6a2d26b65511e164772bec6918fcbc61938e ]

Add check for usbnet_get_endpoints() and return the error if it fails
in order to transfer the error.

Fixes: 16626b0cc3d5 ("asix: Add a new driver for the AX88172A")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/usb/ax88172a.c