Files
linux/drivers
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
..
2011-01-07 14:43:17 -08:00
2011-01-07 14:43:06 -08:00
2010-08-26 16:41:51 -07:00
2010-08-26 16:41:42 -07:00
2009-10-15 09:58:27 -06:00
2009-11-12 07:26:01 -08:00
2011-02-17 15:37:00 -08:00
2010-08-13 13:20:13 -07:00
2011-02-17 15:37:03 -08:00
2010-05-12 14:57:15 -07:00