Commit a5b1a9c1 authored by 倪琛's avatar 倪琛 Committed by felix
Browse files

sr9800: Add check for usbnet_get_endpoints

stable inclusion
from stable-v4.19.311
commit 424eba06ed405d557077339edb19ce0ebe39e7c7
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9C6FA
CVE: CVE-2024-26651

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=424eba06ed405d557077339edb19ce0ebe39e7c7



--------------------------------

[ Upstream commit 07161b2416f740a2cb87faa5566873f401440a61 ]

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

Signed-off-by: default avatarChen Ni <nichen@iscas.ac.cn>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Fixes: 19a38d8e ("USB2NET : SR9800 : One chip USB2.0 USB2NET SR9800 Device Driver Support")
Link: https://lore.kernel.org/r/20240305075927.261284-1-nichen@iscas.ac.cn


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarFelix Fu <fuzhen5@huawei.com>
parent 6726609c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment