mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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>
This commit is contained in:
parent
33d36bb83c
commit
2994c63863
5 changed files with 62 additions and 64 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue