浏览代码

[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 年之前
父节点
当前提交
b9e2cc0f0e
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 #endif
 
 
-	err = -EINVAL;
+	err = -ENOENT;
 	if (ops == NULL)
 	if (ops == NULL)
 		goto err_out;
 		goto err_out;