mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
ipv6: propagate genlmsg_reply return code
[ Upstream commitd1f20798a1
] genlmsg_reply can fail, so propagate its return code Fixes:915d7e5e59
("ipv6: sr: add code base for control plane support of SR-IPv6") Signed-off-by: Li RongQing <lirongqing@baidu.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f08f5424a7
commit
bb506ddb2f
1 changed files with 1 additions and 3 deletions
|
@ -220,9 +220,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();
|
||||
|
|
Loading…
Reference in a new issue