未验证 提交 7b356ef2 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!886 net: sched: fix NULL pointer dereference in mq_attach

Merge Pull Request from: @ci-robot 
 
PR sync from:  Zhengchao Shao <shaozhengchao@huawei.com>
 https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/thread/XWHRWDMB4P3YRCQBLQMFWCV4DDLKNDHE/ 
 
 
Link:https://gitee.com/openeuler/kernel/pulls/886 

Reviewed-by: Jialin Zhang <zhangjialin11@huawei.com> 
Signed-off-by: Jialin Zhang <zhangjialin11@huawei.com> 
...@@ -1590,6 +1590,10 @@ static int tc_modify_qdisc(struct sk_buff *skb, struct nlmsghdr *n, ...@@ -1590,6 +1590,10 @@ static int tc_modify_qdisc(struct sk_buff *skb, struct nlmsghdr *n,
NL_SET_ERR_MSG(extack, "Qdisc parent/child loop detected"); NL_SET_ERR_MSG(extack, "Qdisc parent/child loop detected");
return -ELOOP; return -ELOOP;
} }
if (clid == TC_H_INGRESS) {
NL_SET_ERR_MSG(extack, "Ingress cannot graft directly");
return -EINVAL;
}
qdisc_refcount_inc(q); qdisc_refcount_inc(q);
goto graft; goto graft;
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册