usb: gadget: function: printer: avoid spinlock recursion
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 13 Sep 2017 06:31:33 +0000 (15:31 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 20 Sep 2017 11:57:28 +0000 (14:57 +0300)
commit9ada8c582088d32bd5c071c17213bc6edf37443a
treef08cbd1a2cc3d37581d2bba9f0e8a8670a5369e4
parent97e133d54c1ca8948b191e5721a145a76c4db33d
usb: gadget: function: printer: avoid spinlock recursion

If usb_gadget_giveback_request() is called in usb_ep_queue(),
this printer_write() is possible to cause spinlock recursion. So,
this patch adds spin_unlock() before calls usb_ep_queue() to avoid it.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_printer.c