From: Dan Carpenter <error27@gmail.com>
To: netdev@vger.kernel.org
Subject: [patch] locking typo in xfrm_state.c
Date: Wed, 8 Apr 2009 13:45:48 +0300 (EAT) [thread overview]
Message-ID: <alpine.DEB.2.00.0904081345430.30705@bicker> (raw)
I'm not sure who to send this patch to.
There is a double lock instead of an unlock.
Found by smatch (http://repo.or.cz/w/smatch.git). Compile tested.
regards,
dan carpenter
Signed-off-by: Dan Carpenter <error27@gmail.com>
--- orig/net/xfrm/xfrm_state.c 2009-04-08 09:19:10.000000000 +0300
+++ devel/net/xfrm/xfrm_state.c 2009-04-08 09:19:18.000000000 +0300
@@ -1615,7 +1615,7 @@
spin_lock_bh(&xfrm_state_lock);
list_del(&walk->all);
- spin_lock_bh(&xfrm_state_lock);
+ spin_unlock_bh(&xfrm_state_lock);
}
EXPORT_SYMBOL(xfrm_state_walk_done);
next reply other threads:[~2009-04-08 10:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-08 10:45 Dan Carpenter [this message]
2009-04-08 11:15 ` [patch] locking typo in xfrm_state.c David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.00.0904081345430.30705@bicker \
--to=error27@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox