Subject: [NET_SCHED]: cls_api: fix return value for non-existant classifiers

From: Patrick McHardy <[email-masked]>
Date: Tue, 20 May 2008 13:20:13 +0200

commit 32fcfbb0b16a119534a0cfe750a0925b3c710b39
Author: Patrick McHardy <[email-masked]>
Date:   Tue May 20 04:27:25 2008 +0200

    [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 <[email-masked]>

diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index 1086df7..9360fc8 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