From: Wei Yongjun Date: Fri, 26 Jul 2013 02:15:55 +0000 (+0800) Subject: staging: gdm724x: use GFP_ATOMIC under spin lock X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b07dee7c9aa78e9b55e0b4ecdba622db55a99ffe;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: gdm724x: use GFP_ATOMIC under spin lock A spin lock is taken here so we should use GFP_ATOMIC. Signed-off-by: Wei Yongjun Acked-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gdm724x/gdm_mux.c b/drivers/staging/gdm724x/gdm_mux.c index 2e619d2e7ba1..b630babb57af 100644 --- a/drivers/staging/gdm724x/gdm_mux.c +++ b/drivers/staging/gdm724x/gdm_mux.c @@ -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);