[XFRM]: Fix xfrm_state accounting
authorPatrick McHardy <kaber@trash.net>
Tue, 24 Oct 2006 22:34:00 +0000 (15:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Oct 2006 22:34:00 +0000 (15:34 -0700)
xfrm_state_num needs to be increased for XFRM_STATE_ACQ states created
by xfrm_state_find() to prevent the counter from going negative when
the state is destroyed.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_state.c

Simple merge