diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-07-26 10:15:55 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-26 15:05:04 -0700 |
commit | b07dee7c9aa78e9b55e0b4ecdba622db55a99ffe (patch) | |
tree | 004205adf1bc3216354c64d87cfdb55f8476ffc1 /drivers/staging/gdm724x | |
parent | 4bed4f03883af9af08f3d0ae276ace2b5898d846 (diff) |
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 <yongjun_wei@trendmicro.com.cn>
Acked-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gdm724x')
-rw-r--r-- | drivers/staging/gdm724x/gdm_mux.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |