From: Li RongQing Date: Mon, 11 Feb 2019 11:32:20 +0000 (+0800) Subject: ipv6: propagate genlmsg_reply return code X-Git-Tag: v4.19.26~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd49ffa383b912b87ae11f571d24dc19e8f964b7;p=platform%2Fkernel%2Flinux-rpi.git ipv6: propagate genlmsg_reply return code [ Upstream commit d1f20798a119be71746949ba9b2e2ff330fdc038 ] 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: Greg Kroah-Hartman --- diff --git a/net/ipv6/seg6.c b/net/ipv6/seg6.c index 8d0ba75..9b2f272 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();