commit | 17f2f52be0edb6d1ff5a3675f2bc545aea2dbf76 | [log] [tgz] |
---|---|---|
author | Florian Westphal <fw@strlen.de> | Fri Jun 05 13:26:21 2009 +0200 |
committer | Patrick McHardy <kaber@trash.net> | Fri Jun 05 13:26:21 2009 +0200 |
tree | 50c1e9cb16c43c23525eccded67615f009bd691e | |
parent | 10662aa3083f869c645cc2abf5d66849001e2f5d [diff] |
netfilter: ipt_MASQUERADE: remove redundant rwlock The lock "protects" an assignment and a comparision of an integer. When the caller of device_cmp() evaluates the result, nat->masq_index may already have been changed (regardless if the lock is there or not). So, the lock either has to be held during nf_ct_iterate_cleanup(), or can be removed. This does the latter. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Patrick McHardy <kaber@trash.net>