[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)
commit2fab22f2d3290ff7c602fe62f22e825c48e97a06
tree1fa429c2efb77c55c6d0dd7ff7fecd60f1505995
parent82571026b9771c4035b0c62abbbe588fe73373ea
[XFRM]: Fix xfrm_state accounting

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