]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:10:26 +0000 (17:10 +0100)
commit8a09b0f01c404cc59a3b64a4136c4ef801fe4846
treec346fe10123d708f2fc09d324ab8d55551e448f3
parentdb9c4a1f37ee93fdcf34c3f86037daad4cafd16e
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