diff options
| author | Liangliang Lu <luliang@codeaurora.org> | 2017-12-20 11:13:00 +0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-12-19 22:01:48 -0800 |
| commit | 4d74c15e4228162806eba2c8e5daf6513839c6f7 (patch) | |
| tree | 1b423c547529ab585d03ca4e9c91f0946f2e00fc | |
| parent | aab5d115b6fc82d41e184dada307b73b719ffee1 (diff) | |
usb: gadget: ffs: change gfp_flags to GFP_ATOMIC
usb_ep_alloc_request() may sleep with current flag
GFP_KERNEL, but it is in atomic context, change
flag to GFP_ATOMIC to fix this issue.
Change-Id: Ic43a25f0a504d7fed104e636a9a614a4398820ab
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
| -rw-r--r-- | drivers/usb/gadget/function/f_fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c index a1e43d6f7ebb..7d7197e2cfc4 100644 --- a/drivers/usb/gadget/function/f_fs.c +++ b/drivers/usb/gadget/function/f_fs.c @@ -924,7 +924,7 @@ retry: } if (io_data->aio) { - req = usb_ep_alloc_request(ep->ep, GFP_KERNEL); + req = usb_ep_alloc_request(ep->ep, GFP_ATOMIC); if (unlikely(!req)) goto error_lock; |
