]> git.baikalelectronics.ru Git - kernel.git/commit
[PKTGEN]: Fix double unlock of xfrm_state->lock
authorPavel Emelyanov <xemul@openvz.org>
Tue, 20 Nov 2007 06:51:24 +0000 (22:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Nov 2007 06:51:24 +0000 (22:51 -0800)
commit23a3dfa437eaa49ab31cbdbeda1c89acd31c6989
tree5b95a155c43486007e83ead6e7d76c8c6b9d089e
parent117abf7fc1ce3cea0d8737dad1634c245a68dd41
[PKTGEN]: Fix double unlock of xfrm_state->lock

The pktgen_output_ipsec() function can unlock this lock twice
due to merged error and plain paths. Remove one of the calls
to spin_unlock.

Other possible solution would be to place "return 0" right
after the first unlock, but at this place the err is known
to be 0, so these solutions are the same except for this one
makes the code shorter.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c