summaryrefslogtreecommitdiff
path: root/net/sched/sch_ingress.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-01-21 00:12:32 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 15:08:20 -0800
commite037834758af82a24c4d390b93e1ce5e280a551a (patch)
tree12fb2d79de7c09226d1b8834738e716dc47606ab /net/sched/sch_ingress.c
parentc21d4d5dd27329c30c5129d5dbc4942456af361c (diff)
downloadlwn-e037834758af82a24c4d390b93e1ce5e280a551a.tar.gz
lwn-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>
Diffstat (limited to 'net/sched/sch_ingress.c')
-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)