summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-05-20 23:34:46 +0200
committerDavid S. Miller <davem@davemloft.net>2008-05-20 23:34:46 +0200
commitf2df824948d559ea818e03486a8583e42ea6ab37 (patch)
tree7566318874c03d1513011208c8bf378282298444 /net
parentipsec: Use the correct ip_local_out function (diff)
downloadlinux-f2df824948d559ea818e03486a8583e42ea6ab37.tar.xz
linux-f2df824948d559ea818e03486a8583e42ea6ab37.zip
net_sched: cls_api: fix return value for non-existant classifiers
cls_api should return ENOENT when the requested classifier doesn't exist. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-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 1086df7478bc..9360fc81e8c7 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -220,7 +220,7 @@ replay:
tp = kzalloc(sizeof(*tp), GFP_KERNEL);
if (tp == NULL)
goto errout;
- err = -EINVAL;
+ err = -ENOENT;
tp_ops = tcf_proto_lookup_ops(tca[TCA_KIND]);
if (tp_ops == NULL) {
#ifdef CONFIG_KMOD