diff options
author | Denis V. Lunev <den@openvz.org> | 2007-11-10 22:12:03 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-11-10 22:12:03 -0800 |
commit | 2994c63863ac350c4c8c6a65d8110749c2abb95c (patch) | |
tree | 5509f71222641098683df1b1e0ff7bdfc2758b2c /include/net/fib_rules.h | |
parent | 33d36bb83c5b566c98a441e791736e25dbc35fc3 (diff) | |
download | linux-stable-2994c63863ac350c4c8c6a65d8110749c2abb95c.tar.gz linux-stable-2994c63863ac350c4c8c6a65d8110749c2abb95c.tar.bz2 linux-stable-2994c63863ac350c4c8c6a65d8110749c2abb95c.zip |
[INET]: Small possible memory leak in FIB rules
This patch fixes a small memory leak. Default fib rules can be deleted by
the user if the rule does not carry FIB_RULE_PERMANENT flag, f.e. by
ip rule flush
Such a rule will not be freed as the ref-counter has 2 on start and becomes
clearly unreachable after removal.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Acked-by: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/fib_rules.h')
-rw-r--r-- | include/net/fib_rules.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/fib_rules.h b/include/net/fib_rules.h index 017aebd90683..41a301e38643 100644 --- a/include/net/fib_rules.h +++ b/include/net/fib_rules.h @@ -107,4 +107,7 @@ extern int fib_rules_unregister(struct fib_rules_ops *); extern int fib_rules_lookup(struct fib_rules_ops *, struct flowi *, int flags, struct fib_lookup_arg *); +extern int fib_default_rule_add(struct fib_rules_ops *, + u32 pref, u32 table, + u32 flags); #endif |