From e037834758af82a24c4d390b93e1ce5e280a551a Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Mon, 21 Jan 2008 00:12:32 -0800 Subject: [PATCH] [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 --- net/sched/sch_ingress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sched/sch_ingress.c b/net/sched/sch_ingress.c index d803cd1376..1bbc648f06 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) -- 2.39.5