]> err.no Git - linux-2.6/commit
[XFRM]: fix incorrect xfrm_state_afinfo_lock use
authorIngo Molnar <mingo@elte.hu>
Fri, 28 Apr 2006 22:30:03 +0000 (15:30 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 30 Apr 2006 01:33:20 +0000 (18:33 -0700)
commitf3111502c065d32dcb021f55e30398aaebd8fb0f
tree59c51b1d18f866c38d23ad6fe74820f0a2cdb43d
parent83de47cd0c5738105f40e65191b0761dfa7431ac
[XFRM]: fix incorrect xfrm_state_afinfo_lock use

xfrm_state_afinfo_lock can be read-locked from bh context, so take it
in a bh-safe manner in xfrm_state_register_afinfo() and
xfrm_state_unregister_afinfo(). Found by the lock validator.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_state.c