[PATCH -next] staging: gdm724x: use GFP_ATOMIC under spin lock

From: Wei Yongjun
Date: Thu Jul 25 2013 - 22:16:16 EST

From: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>

A spin lock is taken here so we should use GFP_ATOMIC.

Signed-off-by: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
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,

- 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/