From: Stanislaw Gruszka <sgruszka@redhat.com>
To: linux-wireless@vger.kernel.org
Cc: Dominik Brodowski <linux@dominikbrodowski.net>,
Tim Gardner <tim.gardner@canonical.com>,
stable@kernel.org
Subject: Re: [PATCH] hostap_cs: fix sleeping function called from invalid context
Date: Tue, 11 Jan 2011 14:17:00 +0100 [thread overview]
Message-ID: <20110111131659.GA13429@redhat.com> (raw)
In-Reply-To: <20110110115551.GA3227@redhat.com>
On Mon, Jan 10, 2011 at 12:56:03PM +0100, Stanislaw Gruszka wrote:
> pcmcia_request_irq() and pcmcia_enable_device() are intended
> to be called from process context (first function allocate memory
> with GFP_KERNEL, second take a mutex). We can not take spin lock
> and call them.
>
> It's safe to move spin lock after pcmcia_enable_device() as we
> still hold off IRQ until dev->base_addr is 0 and driver will
> not proceed with interrupts when is not ready.
>
> Patch resolves:
> https://bugzilla.redhat.com/show_bug.cgi?id=643758
>
> Reported-and-tested-by: rbugz@biobind.com
> Cc: stable@kernel.org # 2.6.34+
Patch is also needed for 2.6.32, I will post that version too.
Stanislaw
prev parent reply other threads:[~2011-01-11 13:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-10 11:56 [PATCH] hostap_cs: fix sleeping function called from invalid context Stanislaw Gruszka
2011-01-11 13:17 ` Stanislaw Gruszka [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=20110111131659.GA13429@redhat.com \
--to=sgruszka@redhat.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linux@dominikbrodowski.net \
--cc=stable@kernel.org \
--cc=tim.gardner@canonical.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.