net: return correct error code
authorliuguoqiang <liuguoqiang@uniontech.com>
Mon, 15 Nov 2021 08:14:48 +0000 (16:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Nov 2021 14:22:12 +0000 (14:22 +0000)
commit6def480181f15f6d9ec812bca8cbc62451ba314c
treedbd7bb1eb07f56b30f5901706cb5c9a4afe51ec9
parent9119570039481d56350af1c636f040fb300b8cf3
net: return correct error code

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>
net/ipv4/devinet.c