[PKT_SCHED]: Return ENOENT if qdisc module is unavailable
authorJamal Hadi Salim <hadi@cyberus.ca>
Thu, 3 Aug 2006 23:36:51 +0000 (16:36 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sat, 5 Aug 2006 05:59:49 +0000 (22:59 -0700)
Return ENOENT if qdisc module is unavailable

Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c

index c7844bacbbcbb3770804ff1d2e0afb7a18ce3ead..a19eff12cf78b9013d66f070153c869f8242b151 100644 (file)
@@ -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;