Files
linux/drivers/net/wireless
Stanislaw Gruszka 04c7ff0534 hostap_cs: fix sleeping function called from invalid context
commit 4e5518ca53 upstream.

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
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-02-17 15:37:09 -08:00
..
2010-04-26 07:41:32 -07:00
2010-07-05 11:10:28 -07:00
2010-07-05 11:11:13 -07:00
2010-03-15 08:49:37 -07:00
2009-08-20 11:35:58 -04:00
2009-10-29 09:01:07 -07:00