liuguoqiang 10ade6a196 net: return correct error code
[ Upstream commit 6def480181f15f6d9ec812bca8cbc62451ba314c ]

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

Signed-off-by: liuguoqiang <liuguoqiang@uniontech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-12-08 08:45:05 +01:00
..
2018-04-13 19:48:32 +02:00
2021-12-08 08:45:05 +01:00
2021-09-03 09:44:40 +02:00
2016-09-21 00:23:01 -04:00
2019-04-17 08:36:45 +02:00
2017-05-14 14:00:21 +02:00
2016-09-01 14:09:01 -07:00