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: firefly_0821_release~33921^2~4 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b9e2cc0f0e47ad351349156018ef8a365e9c6d25;p=firefly-linux-kernel-4.4.55.git [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 c7844bacbbcb..a19eff12cf78 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;