From: Patrick McHardy Date: Mon, 21 Jan 2008 08:12:32 +0000 (-0800) Subject: [NET_SCHED]: sch_ingress: return proper error code in ingress_graft() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e037834758af82a24c4d390b93e1ce5e280a551a;p=openwrt%2Fstaging%2Fblogic.git [NET_SCHED]: sch_ingress: return proper error code in ingress_graft() Signed-off-by: Patrick McHardy Acked-by: Jamal Hadi Salim Signed-off-by: David S. Miller --- 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)