summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-01-21 09:12:32 +0100
committerDavid S. Miller <davem@davemloft.net>2008-01-29 00:08:20 +0100
commite037834758af82a24c4d390b93e1ce5e280a551a (patch)
tree12fb2d79de7c09226d1b8834738e716dc47606ab
parent[NET_SCHED]: sch_ingress: remove unused inner qdisc (diff)
downloadlinux-e037834758af82a24c4d390b93e1ce5e280a551a.tar.xz
linux-e037834758af82a24c4d390b93e1ce5e280a551a.zip
[NET_SCHED]: sch_ingress: return proper error code in ingress_graft()
Signed-off-by: Patrick McHardy <kaber@trash.net> Acked-by: Jamal Hadi Salim <hadi@cyberus.ca> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/sched/sch_ingress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_ingress.c b/net/sched/sch_ingress.c
index d803cd137629..1bbc648f06ee 100644
--- a/net/sched/sch_ingress.c
+++ b/net/sched/sch_ingress.c
@@ -35,7 +35,7 @@ struct ingress_qdisc_data {
static int ingress_graft(struct Qdisc *sch, unsigned long arg,
struct Qdisc *new, struct Qdisc **old)
{
- return 1;
+ return -EOPNOTSUPP;
}
static struct Qdisc *ingress_leaf(struct Qdisc *sch, unsigned long arg)