MTP: solve one cancel problem
authorhwg <hwg@rock-chips.com>
Fri, 8 Jun 2012 07:16:45 +0000 (15:16 +0800)
committerhwg <hwg@rock-chips.com>
Fri, 8 Jun 2012 07:16:45 +0000 (15:16 +0800)
drivers/usb/gadget/f_mtp.c

index 4ac7c8394983c976f4d9905611e1bcb2d43fb8be..034cdf68f9f6462219509c28af0a1d45ec7f564b 100755 (executable)
@@ -1037,7 +1037,7 @@ static int mtp_ctrlrequest(struct usb_composite_dev *cdev,
                        DBG(cdev, "MTP_REQ_CANCEL %d\n", dev->state);
 
                        spin_lock_irqsave(&dev->lock, flags);
-                       if (dev->state == STATE_BUSY) {
+                       /*if (dev->state == STATE_BUSY)*/ {
                                dev->state = STATE_CANCELED;
                                wake_up(&dev->read_wq);
                                wake_up(&dev->write_wq);