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>
This commit is contained in:
Liangliang Lu 2017-12-20 11:13:00 +08:00 committed by Gerrit - the friendly Code Review server
parent aab5d115b6
commit 4d74c15e42

View file

@ -924,7 +924,7 @@ retry:
} }
if (io_data->aio) { 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)) if (unlikely(!req))
goto error_lock; goto error_lock;