From: Corey Minyard <minyard@acm.org>
To: Alistair Popple <alistair@popple.id.au>,
openipmi-developer@lists.sourceforge.net
Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
jk@ozlabs.org
Subject: Re: [Openipmi-developer] [PATCH] ipmi/powernv: Fix minor locking bug
Date: Fri, 10 Apr 2015 06:47:47 -0500 [thread overview]
Message-ID: <5527B863.6080901@acm.org> (raw)
In-Reply-To: <1428651140-13665-1-git-send-email-alistair@popple.id.au>
I should have caught that one. Thanks.
-corey
On 04/10/2015 02:32 AM, Alistair Popple wrote:
> If ipmi_powernv_recv(...) is called without a current message it
> prints a warning and returns. However it fails to release the message
> lock causing the system to dead lock during any subsequent IPMI
> operations.
>
> This error path should never normally be taken unless there are bugs
> elsewhere in the system.
>
> Signed-off-by: Alistair Popple <alistair@popple.id.au>
> ---
> drivers/char/ipmi/ipmi_powernv.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/char/ipmi/ipmi_powernv.c b/drivers/char/ipmi/ipmi_powernv.c
> index b3a2224..9b409c0 100644
> --- a/drivers/char/ipmi/ipmi_powernv.c
> +++ b/drivers/char/ipmi/ipmi_powernv.c
> @@ -126,6 +126,7 @@ static int ipmi_powernv_recv(struct ipmi_smi_powernv *smi)
> spin_lock_irqsave(&smi->msg_lock, flags);
>
> if (!smi->cur_msg) {
> + spin_unlock_irqrestore(&smi->msg_lock, flags);
> pr_warn("no current message?\n");
> return 0;
> }
prev parent reply other threads:[~2015-04-10 11:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-10 7:32 [PATCH] ipmi/powernv: Fix minor locking bug Alistair Popple
2015-04-10 11:47 ` Corey Minyard [this message]
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=5527B863.6080901@acm.org \
--to=minyard@acm.org \
--cc=alistair@popple.id.au \
--cc=jk@ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=openipmi-developer@lists.sourceforge.net \
/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;
as well as URLs for NNTP newsgroup(s).