Repository navigation
Commit 3fc8866
net: return correct error code
[ Upstream commit 6def480 ]
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>1 parent 2c514d2 commit 3fc8866
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2582 | 2582 | | |
2583 | 2583 | | |
2584 | 2584 | | |
2585 | | - | |
| 2585 | + | |
2586 | 2586 | | |
2587 | 2587 | | |
2588 | 2588 | | |
| |||
0 commit comments