diff options
author | Cong Wang <[email protected]> | 2020-02-02 20:30:52 -0800 |
---|---|---|
committer | Pablo Neira Ayuso <[email protected]> | 2020-02-07 15:53:31 +0100 |
commit | c4a3922d2d20c710f827d3a115ee338e8d0467df (patch) | |
tree | bfb9ea05404c15a28bb5cd556bb24bd79b665341 /scripts/gdb/linux/device.py | |
parent | 259039fa30457986929a324d769f543c1509987f (diff) |
netfilter: xt_hashlimit: reduce hashlimit_mutex scope for htable_put()
It is unnecessary to hold hashlimit_mutex for htable_destroy()
as it is already removed from the global hashtable and its
refcount is already zero.
Also, switch hinfo->use to refcount_t so that we don't have
to hold the mutex until it reaches zero in htable_put().
Reported-and-tested-by: [email protected]
Acked-by: Florian Westphal <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/device.py')
0 files changed, 0 insertions, 0 deletions