projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ac06e0
)
net_sched: cls_api: fix return value for non-existant classifiers
author
Patrick McHardy
<kaber@trash.net>
Tue, 20 May 2008 21:34:46 +0000
(14:34 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 20 May 2008 21:34:46 +0000
(14:34 -0700)
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>
net/sched/cls_api.c
patch
|
blob
|
history
diff --git
a/net/sched/cls_api.c
b/net/sched/cls_api.c
index
1086df7
..
9360fc8
100644
(file)
--- 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 = -E
INVAL
;
+ err = -E
NOENT
;
tp_ops = tcf_proto_lookup_ops(tca[TCA_KIND]);
if (tp_ops == NULL) {
#ifdef CONFIG_KMOD