]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PKT_SCHED: Return ENOENT if action module is unavailable
authorThomas Graf <tgraf@suug.ch>
Thu, 6 Jul 2006 03:58:23 +0000 (20:58 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 25 Jul 2006 03:35:22 +0000 (20:35 -0700)
Return ENOENT if action module is unavailable

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sched/act_api.c

index 2c2c37191ffd927298d7bf78e4c986f8ccaa548b..67c31f90d56c6e1d309c6c00e0ddb6d217df91b2 100644 (file)
@@ -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;
        }