Commit 0b65e0ef authored by Zheng Yongjun's avatar Zheng Yongjun Committed by Yang Yingliang
Browse files

fib: Return the correct errno code



stable inclusion
from linux-4.19.196
commit 7e3f278d55b0677aa82d07ba521390c8b090ee69

--------------------------------

[ Upstream commit 59607863 ]

When kalloc or kmemdup failed, should return ENOMEM rather than ENOBUF.

Signed-off-by: default avatarZheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 400f505b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment