Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 966036fd authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by Felipe Balbi
Browse files

usb: gadget: gr_udc: unconditionally use GFP_ATOMIC in gr_queue_ext()



As far as gr_queue() is called with spinlock held,
we have to pass GFP_ATOMIC regardless of gfp argument.

Found by Linux Driver Verification project (linuxtesting.org).

Acked-by: default avatarAndreas Larsson <andreas@gaisler.com>
Signed-off-by: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent f06d186d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1684,7 +1684,7 @@ static int gr_queue_ext(struct usb_ep *_ep, struct usb_request *_req,
	if (ep->is_in)
		gr_dbgprint_request("EXTERN", ep, req);

	ret = gr_queue(ep, req, gfp_flags);
	ret = gr_queue(ep, req, GFP_ATOMIC);

	spin_unlock(&ep->dev->lock);