From 7c610bb26a37228d967dce18a6fe10b70b79ea37 Mon Sep 17 00:00:00 2001 From: Li RongQing Date: Wed, 20 Feb 2019 15:44:37 +0000 Subject: [PATCH] ipv6: propagate genlmsg_reply return code mainline inclusion from mainline-v5.0 commit d1f20798a119 category: bugfix bugzilla: 9555 CVE: NA ------------------------------------------------- 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 Signed-off-by: David S. Miller Signed-off-by: Shangli Reviewed-by: Mao Wenan Signed-off-by: Yang Yingliang --- net/ipv6/seg6.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/ipv6/seg6.c b/net/ipv6/seg6.c index 8d0ba757a46c..9b2f272ca164 100644 --- 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(); -- GitLab