]> git.baikalelectronics.ru Git - kernel.git/commit
net: Return the correct errno code
authorZheng Yongjun <zhengyongjun3@huawei.com>
Wed, 2 Jun 2021 14:06:40 +0000 (22:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jun 2021 22:13:56 +0000 (15:13 -0700)
commitbbf43a2c02b06aabbb105c97b030b92059886c11
tree97829f4717eb2ab1763b83f270346f660182e081
parente13aed30d374a5858383ab67c1832c75909ef94c
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/compat.c