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