projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29dded8
)
ipv6: propagate genlmsg_reply return code
author
Li RongQing
<lirongqing@baidu.com>
Mon, 11 Feb 2019 11:32:20 +0000
(19:32 +0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 12 Feb 2019 17:36:02 +0000
(12:36 -0500)
genlmsg_reply can fail, so propagate its return code
Fixes: 915d7e5e593 ("ipv6: sr: add code base for control plane support of SR-IPv6")
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/seg6.c
patch
|
blob
|
history
diff --git
a/net/ipv6/seg6.c
b/net/ipv6/seg6.c
index 8d0ba757a46ce52bf85d5e88d43567b5bd96678d..9b2f272ca164919aa4c9a6559852f55a10ce24aa 100644
(file)
--- a/
net/ipv6/seg6.c
+++ b/
net/ipv6/seg6.c
@@
-221,9
+221,7
@@
static int seg6_genl_get_tunsrc(struct sk_buff *skb, struct genl_info *info)
rcu_read_unlock();
genlmsg_end(msg, hdr);
- genlmsg_reply(msg, info);
-
- return 0;
+ return genlmsg_reply(msg, info);
nla_put_failure:
rcu_read_unlock();