net: Return the correct errno code
authorZheng Yongjun <zhengyongjun3@huawei.com>
Tue, 1 Jun 2021 14:14:07 +0000 (22:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2021 00:02:15 +0000 (17:02 -0700)
commitca746c55a7e6e597cc2d29a094082d345b2c33c9
tree8f1ad7915ad4efc304b5602597d61bb0f856744d
parentb923cda9638860d6fbb688cfc4c939ff13df31b5
net: Return the correct errno code

When kalloc or kmemdup failed, should return ENOMEM rather than ENOBUF.

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c