]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PKT_SCHED: Return ENOENT if action module is unavailable
authorThomas Graf <tgraf@suug.ch>
Tue, 7 Nov 2006 14:32:51 +0000 (15:32 +0100)
committerAdrian Bunk <bunk@stusta.de>
Tue, 7 Nov 2006 14:32:51 +0000 (15:32 +0100)
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: Adrian Bunk <bunk@stusta.de>
net/sched/act_api.c

index 073b597879ecc4691593cd04a9a2d27497e4a527..eb7dc2947a0a2212eac81dfbd320d1c20179548f 100644 (file)
@@ -308,6 +308,7 @@ struct tc_action *tcf_action_init_1(struct rtattr *rta, struct rtattr *est,
                        goto err_mod;
                }
 #endif
+               *err = -ENOENT;
                goto err_out;
        }