]> 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>
Mon, 15 Jan 2024 17:51:20 +0000 (18:51 +0100)
commitfda00eb3cd41dcd0b4b7d69f1eb7224870820568
tree136335721cea6da07b1500b310ec0e704d641d20
parent0817c1b21561b8c5d8ef8e96d9d26771ebafc7d1
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