diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2014-05-07 16:26:52 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-05-14 10:23:30 -0400 |
commit | 966036fde60e6d96708815e0d495692ac352acf9 (patch) | |
tree | c00f71ac54f72e044c40acc66e73cb5c8e75f66c | |
parent | f06d186dbd294e9d436096747f34918b70b4f8f1 (diff) |
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: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/gadget/gr_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/gr_udc.c b/drivers/usb/gadget/gr_udc.c index 4966971d6978..99a37ed03e27 100644 --- a/drivers/usb/gadget/gr_udc.c +++ b/drivers/usb/gadget/gr_udc.c | |||
@@ -1684,7 +1684,7 @@ static int gr_queue_ext(struct usb_ep *_ep, struct usb_request *_req, | |||
1684 | if (ep->is_in) | 1684 | if (ep->is_in) |
1685 | gr_dbgprint_request("EXTERN", ep, req); | 1685 | gr_dbgprint_request("EXTERN", ep, req); |
1686 | 1686 | ||
1687 | ret = gr_queue(ep, req, gfp_flags); | 1687 | ret = gr_queue(ep, req, GFP_ATOMIC); |
1688 | 1688 | ||
1689 | spin_unlock(&ep->dev->lock); | 1689 | spin_unlock(&ep->dev->lock); |
1690 | 1690 | ||