Commit 96274948 authored by liuguoqiang's avatar liuguoqiang Committed by Greg Kroah-Hartman
Browse files

net: return correct error code



[ Upstream commit 6def4801 ]

When kmemdup called failed and register_net_sysctl return NULL, should
return ENOMEM instead of ENOBUFS

Signed-off-by: default avatarliuguoqiang <liuguoqiang@uniontech.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 89d15a2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment