From: Jamal Hadi Salim Date: Thu, 3 Aug 2006 23:36:51 +0000 (-0700) Subject: [PKT_SCHED]: Return ENOENT if qdisc module is unavailable X-Git-Tag: v2.6.18-rc4~3^2~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9e2cc0f0e47ad351349156018ef8a365e9c6d25;p=linux-2.6 [PKT_SCHED]: Return ENOENT if qdisc module is unavailable Return ENOENT if qdisc module is unavailable Signed-off-by: Jamal Hadi Salim Signed-off-by: David S. Miller --- diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index c7844bacbb..a19eff12cf 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -430,7 +430,7 @@ qdisc_create(struct net_device *dev, u32 handle, struct rtattr **tca, int *errp) } #endif - err = -EINVAL; + err = -ENOENT; if (ops == NULL) goto err_out;