]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: sxg: Fix sleep in atomic context warning while loading driver
authorMithlesh Thukral <mithlesh@linsyssoft.com>
Wed, 25 Mar 2009 10:21:14 +0000 (15:51 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 17 Apr 2009 18:06:31 +0000 (11:06 -0700)
commit7ad71aab2a4e9de77a1683274855418ede9ad27f
tree87599f51989f80cb86f9da51ce75da0a10a88ff2
parent6a2a2dd755984f4c9f5c92f8eacc19bafbea0c25
Staging: sxg: Fix sleep in atomic context warning while loading driver

Leave a spinlock before calling request_irq(). request_irq() calls kmalloc
which can sleep. This was generating a warning dump while driver is loaded.

Signed-off-by: LinSysSoft Sahara Team <saharaproj@linsyssoft.com>
Signed-off-by: Mithlesh Thukral <mithlesh@linsyssoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/sxg/sxg.c