Unverified Commit 7b356ef2 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

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

parents 755367c8 b39bf2e1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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");
					return -ELOOP;
				}
				if (clid == TC_H_INGRESS) {
					NL_SET_ERR_MSG(extack, "Ingress cannot graft directly");
					return -EINVAL;
				}
				qdisc_refcount_inc(q);
				goto graft;
			} else {