staging: gdm724x: use GFP_ATOMIC under spin lock
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 26 Jul 2013 02:15:55 +0000 (10:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2013 22:05:04 +0000 (15:05 -0700)
A spin lock is taken here so we should use GFP_ATOMIC.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm724x/gdm_mux.c

index 2e619d2e7ba109da7a4dee84615bd8ce997af908..b630babb57af6f53ce0744a3b0385903c5b50f5a 100644 (file)
@@ -409,7 +409,7 @@ static int gdm_mux_send(void *priv_dev, void *data, int len, int tty_index,
                          gdm_mux_send_complete,
                          t);
 
-       ret = usb_submit_urb(t->urb, GFP_KERNEL);
+       ret = usb_submit_urb(t->urb, GFP_ATOMIC);
 
        spin_unlock_irqrestore(&mux_dev->write_lock, flags);