Commit 01965b35 authored by Li RongQing's avatar Li RongQing Committed by Greg Kroah-Hartman

ipv6: propagate genlmsg_reply return code

[ Upstream commit d1f20798 ]

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 <>
Signed-off-by: default avatarDavid S. Miller <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 25b3f56a
......@@ -221,9 +221,7 @@ static int seg6_genl_get_tunsrc(struct sk_buff *skb, struct genl_info *info)
genlmsg_end(msg, hdr);
genlmsg_reply(msg, info);
return 0;
return genlmsg_reply(msg, info);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment