]> 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)
commit3a2eda931089facdb9ebf29d5bf738c1a4c89bdb
tree97829f4717eb2ab1763b83f270346f660182e081
parent6923c2df5423d10fb00b58ba3b9c58b3ffab798c
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