staging: ced1401: fix GFP_KERNEL in spinlock context
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 11 Jan 2013 09:01:39 +0000 (13:01 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jan 2013 00:44:10 +0000 (16:44 -0800)
commit955e7da82d8cc917a2c604c782b525dec3466921
treee213d81f73c31d7883b9058b93ddf1572dd79a22
parentccbdccd4a7981c150a882123a577c11b2e808051
staging: ced1401: fix GFP_KERNEL in spinlock context

Allowi() calls usb_submit_urb(pdx->pUrbCharIn, bInCallback ? GFP_ATOMIC : GFP_KERNEL)
under spin_lock_irqsave(&pdx->charInLock, flags). That means it should use GFP_ATOMIC anyway.
As soon as it is the only usage of bInCallback argument, the patch removes it at all.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ced1401/ced_ioc.c
drivers/staging/ced1401/usb1401.c
drivers/staging/ced1401/usb1401.h