summaryrefslogtreecommitdiffstats
path: root/drivers/block/nbd.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2009-06-05 13:26:21 +0200
committerPatrick McHardy <kaber@trash.net>2009-06-05 13:26:21 +0200
commit17f2f52be0edb6d1ff5a3675f2bc545aea2dbf76 (patch)
tree50c1e9cb16c43c23525eccded67615f009bd691e /drivers/block/nbd.c
parent10662aa3083f869c645cc2abf5d66849001e2f5d (diff)
downloadlinux-stable-17f2f52be0edb6d1ff5a3675f2bc545aea2dbf76.tar.gz
linux-stable-17f2f52be0edb6d1ff5a3675f2bc545aea2dbf76.tar.bz2
linux-stable-17f2f52be0edb6d1ff5a3675f2bc545aea2dbf76.zip
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>
Diffstat (limited to 'drivers/block/nbd.c')
0 files changed, 0 insertions, 0 deletions