Browse Source

[PKT_SCHED]: Return ENOENT if action module is unavailable

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Thomas Graf 19 years ago
parent
commit
d152b4e1e9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      net/sched/act_api.c

+ 1 - 0
net/sched/act_api.c

@@ -305,6 +305,7 @@ struct tc_action *tcf_action_init_1(struct rtattr *rta, struct rtattr *est,
 			goto err_mod;
 		}
 #endif
+		*err = -ENOENT;
 		goto err_out;
 	}