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

!889 [sync] PR-886: net: sched: fix NULL pointer dereference in mq_attach

parents 96ea00f7 b7e3431d
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 {