OpenVZ Forum


Home » Mailing lists » Devel » [PATCH][PKTGEN] Fix double unlock of xfrm_state->lock
Re: [PATCH][PKTGEN] Fix double unlock of xfrm_state->lock [message #23543 is a reply to message #23503] Tue, 20 November 2007 06:51 Go to previous message
davem is currently offline  davem
Messages: 463
Registered: February 2006
Senior Member
From: Pavel Emelyanov <xemul@openvz.org>
Date: Mon, 19 Nov 2007 12:47:00 +0300

> 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>

Applied, thanks Pavel.
 
Read Message
Read Message
Read Message
Previous Topic: [PATCH 6/6 net-2.6.25][RAW] Consolidate proc interface (v2)
Next Topic: [PATCH][IPVS] Relax the module get/put in ip_vs_app.c
Goto Forum:
  


Current Time: Fri Aug 22 11:51:57 GMT 2025

Total time taken to generate the page: 0.07702 seconds