Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd49ffa3 authored by Li RongQing's avatar Li RongQing Committed by Greg Kroah-Hartman
Browse files

ipv6: propagate genlmsg_reply return code



[ Upstream commit d1f20798a119be71746949ba9b2e2ff330fdc038 ]

genlmsg_reply can fail, so propagate its return code

Fixes: 915d7e5e ("ipv6: sr: add code base for control plane support of SR-IPv6")
Signed-off-by: default avatarLi RongQing <lirongqing@baidu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 589503cb
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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();