diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 3a3a1da6b07188a1a347714dc81a45680bd53719..81ecf5bec26dfad05818a56eb3c39d9c6b41561b 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -1402,10 +1402,8 @@ static int tc_modify_qdisc(struct sk_buff *skb, struct nlmsghdr *n, return -EINVAL; } q = qdisc_lookup(dev, tcm->tcm_handle); - if (!q) { - NL_SET_ERR_MSG(extack, "No qdisc found for specified handle"); + if (!q) goto create_n_graft; - } if (n->nlmsg_flags & NLM_F_EXCL) { NL_SET_ERR_MSG(extack, "Exclusivity flag on, cannot override"); return -EEXIST;