]> err.no Git - linux-2.6/commitdiff
[NET_SCHED]: sch_ingress: return proper error code in ingress_graft()
authorPatrick McHardy <kaber@trash.net>
Mon, 21 Jan 2008 08:12:32 +0000 (00:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:08:20 +0000 (15:08 -0800)
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>
net/sched/sch_ingress.c

index d803cd137629ee672635a96752280e39dfbaa4ca..1bbc648f06ee087d37e50b6f64500e9d088ce6f7 100644 (file)
@@ -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)