projects
/
wrapfs-2.6.37.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51cc5ad
)
fib: Return the correct errno code
author
Zheng Yongjun
<zhengyongjun3@huawei.com>
Wed, 2 Jun 2021 14:06:58 +0000
(22:06 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 07:59:00 +0000
(09:59 +0200)
[ Upstream commit
59607863c54e9eb3f69afc5257dfe71c38bb751e
]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/fib_rules.c
patch
|
blob
|
history
diff --git
a/net/core/fib_rules.c
b/net/core/fib_rules.c
index bb11fc87bbaef121d6901a527abb583a1ab34722..675f27ef6872fc7157acc50f11926cb64a4dfa89 100644
(file)
--- a/
net/core/fib_rules.c
+++ b/
net/core/fib_rules.c
@@
-1138,7
+1138,7
@@
static void notify_rule_change(int event, struct fib_rule *rule,
{
struct net *net;
struct sk_buff *skb;
- int err = -ENO
BUFS
;
+ int err = -ENO
MEM
;
net = ops->fro_net;
skb = nlmsg_new(fib_rule_nlmsg_size(ops, rule), GFP_KERNEL);