projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49251cd
)
fib: Return the correct errno code
author
Zheng Yongjun
<zhengyongjun3@huawei.com>
Wed, 2 Jun 2021 14:06:58 +0000
(22:06 +0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 3 Jun 2021 22:13:56 +0000
(15:13 -0700)
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
patch
|
blob
|
history
diff --git
a/net/core/fib_rules.c
b/net/core/fib_rules.c
index cd80ffed6d267b58ffbece234f31bddc34a50d92..a9f9379750802b8003b404cc98476aa6d784bd86 100644
(file)
--- a/
net/core/fib_rules.c
+++ b/
net/core/fib_rules.c
@@
-1168,7
+1168,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);