From: Jiri Pirko Date: Mon, 27 Aug 2018 18:58:43 +0000 (+0200) Subject: net: sched: fix extack error message when chain is failed to be created X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d5ed72a55bc0a321ef33d272e2b0bf0d2b06d1fe;p=openwrt%2Fstaging%2Fblogic.git net: sched: fix extack error message when chain is failed to be created Instead "Cannot find" say "Cannot create". Fixes: c35a4acc2985 ("net: sched: cls_api: handle generic cls errors") Signed-off-by: Jiri Pirko Signed-off-by: David S. Miller --- diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index 31bd1439cf60..2d41c5b21b48 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c @@ -1252,7 +1252,7 @@ replay: } chain = tcf_chain_get(block, chain_index, true); if (!chain) { - NL_SET_ERR_MSG(extack, "Cannot find specified filter chain"); + NL_SET_ERR_MSG(extack, "Cannot create specified filter chain"); err = -ENOMEM; goto errout; }