Re: [PATCH net] net: set fib rule refcount after malloc

2017-07-13 Thread David Miller
From: David Ahern Date: Thu, 13 Jul 2017 13:36:40 -0700 > The configure callback of fib_rules_ops can change the refcnt of a > fib rule. For instance, mlxsw takes a refcnt when adding the processing > of the rule to a work queue. Thus the rule refcnt can not be reset to > to 1 afterwards. Move th

[PATCH net] net: set fib rule refcount after malloc

2017-07-13 Thread David Ahern
The configure callback of fib_rules_ops can change the refcnt of a fib rule. For instance, mlxsw takes a refcnt when adding the processing of the rule to a work queue. Thus the rule refcnt can not be reset to to 1 afterwards. Move the refcnt setting to after the allocation. Fixes: 5361e209dd30 ("n