]> 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)
commit773b29869e2460d29b056b835d4880fce46d5946
tree2817a727b8f9396935062ed681fdd73d09910ccc
parentbbf43a2c02b06aabbb105c97b030b92059886c11
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