summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2018-08-27 20:58:43 +0200
committerDavid S. Miller <davem@davemloft.net>2018-08-27 15:16:16 -0700
commitd5ed72a55bc0a321ef33d272e2b0bf0d2b06d1fe (patch)
treea13d268161a7fd17b83b3a381ecfdb9ddfb24c17 /net/sched
parent84581bdae9587023cea1d139523f0ef0f28bd88d (diff)
downloadlinux-stable-d5ed72a55bc0a321ef33d272e2b0bf0d2b06d1fe.tar.gz
linux-stable-d5ed72a55bc0a321ef33d272e2b0bf0d2b06d1fe.tar.bz2
linux-stable-d5ed72a55bc0a321ef33d272e2b0bf0d2b06d1fe.zip
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 <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/cls_api.c2
1 files changed, 1 insertions, 1 deletions
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;
}