From: Thomas Graf Date: Thu, 6 Jul 2006 03:58:23 +0000 (-0700) Subject: PKT_SCHED: Return ENOENT if action module is unavailable X-Git-Tag: v2.6.17.7~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a5bad5657163f8f44f6220929a70acf297d3dd5;p=thirdparty%2Fkernel%2Fstable.git PKT_SCHED: Return ENOENT if action module is unavailable Return ENOENT if action module is unavailable Signed-off-by: Thomas Graf Signed-off-by: David S. Miller Signed-off-by: Chris Wright Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 2c2c37191ffd9..67c31f90d56c6 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -306,6 +306,7 @@ struct tc_action *tcf_action_init_1(struct rtattr *rta, struct rtattr *est, goto err_mod; } #endif + *err = -ENOENT; goto err_out; }