aboutsummaryrefslogtreecommitdiffstats
path: root/certs
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2017-07-13 13:36:40 -0700
committerDavid S. Miller <davem@davemloft.net>2017-07-13 13:43:54 -0700
commit5d89fb33223e0be32e4100623b915048b02beeec (patch)
tree7b0aa95b996611976e9146156cafefd071016f26 /certs
parentnetlink: correctly document nla_put_u64_64bit() (diff)
downloadlinux-dev-5d89fb33223e0be32e4100623b915048b02beeec.tar.xz
linux-dev-5d89fb33223e0be32e4100623b915048b02beeec.zip
net: set fib rule refcount after malloc
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 ("net: avoid one splat in fib_nl_delrule()") Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions