]> 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)
commit49251cd00228a3c983651f6bb2f33f6a0b8f152e
tree97829f4717eb2ab1763b83f270346f660182e081
parentd7736958668c4facc15f421e622ffd718f5be80a
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