提交 7c610bb2 编写于 作者: L Li RongQing 提交者: Xie XiuQi

ipv6: propagate genlmsg_reply return code

mainline inclusion
from mainline-v5.0
commit d1f20798a119
category: bugfix
bugzilla: 9555
CVE: NA

-------------------------------------------------

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: NLi RongQing <lirongqing@baidu.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Signed-off-by: NShangli <shangli1@huawei.com>
Reviewed-by: NMao Wenan <maowenan@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 1abf39e0
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册