[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPgLHd-WN2VF7vEjUn0uLd_RQYYF1qvUy1TUz4EmyPbi=8JQ4g@mail.gmail.com>
Date: Fri, 26 Jul 2013 10:15:55 +0800
From: Wei Yongjun <weiyj.lk@...il.com>
To: gregkh@...uxfoundation.org, wonkang@...semi.com, joe@...ches.com
Cc: yongjun_wei@...ndmicro.com.cn, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: [PATCH -next] staging: gdm724x: use GFP_ATOMIC under spin lock
From: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
A spin lock is taken here so we should use GFP_ATOMIC.
Signed-off-by: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
---
drivers/staging/gdm724x/gdm_mux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/gdm724x/gdm_mux.c b/drivers/staging/gdm724x/gdm_mux.c
index f570bc0..7becf5c 100644
--- a/drivers/staging/gdm724x/gdm_mux.c
+++ b/drivers/staging/gdm724x/gdm_mux.c
@@ -410,7 +410,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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists