diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-12-14 11:38:04 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 14:58:07 -0800 |
commit | 4bda4f250d21c3e4f2a2da5f4cef829a434a4046 (patch) | |
tree | 2632bc368ceab622cf119ef5aee154617fe43f1c /net/mac80211/ieee80211_led.h | |
parent | 5e41fb83216d370d158fe17675af82d12c6c72c9 (diff) |
[XFRM]: Fix potential race vs xfrm_state(only)_find and xfrm_hash_resize.
The _find calls calculate the hash value using the
xfrm_state_hmask, without the xfrm_state_lock. But the
value of this mask can change in the _resize call under
the state_lock, so we risk to fail in finding the desired
entry in hash.
I think, that the hash value is better to calculate
under the state lock.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/ieee80211_led.h')
0 files changed, 0 insertions, 0 deletions