Skip to content

Commit

Permalink
ipv6: propagate genlmsg_reply return code
Browse files Browse the repository at this point in the history
genlmsg_reply can fail, so propagate its return code

Fixes: 915d7e5 ("ipv6: sr: add code base for control plane support of SR-IPv6")
Signed-off-by: Li RongQing <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
lrq-max authored and davem330 committed Feb 12, 2019
1 parent 29dded8 commit d1f2079
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions net/ipv6/seg6.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d1f2079

Please sign in to comment.