mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
MTP: solve one cancel problem
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user