projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/net/sched/cls_api.c
b/net/sched/cls_api.c
index 1086df7478bcee1309702022c7824403e9fbd47c..9360fc81e8c7e8099e2cd105d67bbec1511324b6 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