Patchwork [3/7] xfrm: fix a unbalanced lock

login
register
mail settings
Submitter Steffen Klassert
Date Feb. 14, 2013, 11:47 a.m.
Message ID <1360842447-3344-4-git-send-email-steffen.klassert@secunet.com>
Download mbox | patch
Permalink /patch/220423/
State Accepted
Delegated to: David Miller
Headers show

Comments

Steffen Klassert - Feb. 14, 2013, 11:47 a.m.
From: Li RongQing <roy.qing.li@gmail.com>

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
---
 net/xfrm/xfrm_output.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c
index 3670526..bcfda89 100644
--- a/net/xfrm/xfrm_output.c
+++ b/net/xfrm/xfrm_output.c
@@ -64,7 +64,7 @@  static int xfrm_output_one(struct sk_buff *skb, int err)
 
 		if (unlikely(x->km.state != XFRM_STATE_VALID)) {
 			XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTSTATEINVALID);
-			goto error_nolock;
+			goto error;
 		}
 
 		err = xfrm_state_check_expire(x);