This reverts commit
abb540b5397674243994c5327146b6fed7339b71 which is
commit
b7bd98b7db9f upstream. I had added it to make another patch
apply cleanly, but as Ben points out, that was wrong.
Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: David Eccher <d.eccher@gmail.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman gregkh@linuxfoundation.org
dev->gadget->ep0, dev->req,
GFP_KERNEL);
}
- spin_lock_irq(&dev->lock);
--dev->udc_usage;
if (retval < 0) {
+ spin_lock_irq (&dev->lock);
clean_req (dev->gadget->ep0, dev->req);
+ spin_unlock_irq (&dev->lock);
} else
retval = len;