]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: gr_udc: Use GFP_ATOMIC when allocating under held spinlock
authorAndreas Larsson <andreas@gaisler.com>
Tue, 1 Apr 2014 10:15:17 +0000 (12:15 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 21 Apr 2014 19:07:28 +0000 (14:07 -0500)
commit82c15f329b54956ff044257bad4bd0a04f1cf289
tree5a670e6d8235d23d4a81efc5ca0e5b83f133d7e1
parent01b0fbbe783837a37c033a20a0efc61db8d36a90
usb: gadget: gr_udc: Use GFP_ATOMIC when allocating under held spinlock

As gr_ep_init must be called with dev->lock held, GFP_KERNEL must not be used.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/gr_udc.c