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:
parent
aab5d115b6
commit
4d74c15e42
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue