Sfoglia il codice sorgente

[PKT_SCHED]: Return ENOENT if qdisc module is unavailable

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>
Jamal Hadi Salim 19 anni fa
parent
commit
b9e2cc0f0e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      net/sched/sch_api.c

+ 1 - 1
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;