Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa778a0c authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: f_accessory: Fix check for dev->disconnected"

parents 0f5da0a7 7e7f3cd9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -663,7 +663,7 @@ static ssize_t acc_write(struct file *fp, const char __user *buf,
		req = 0;
		ret = wait_event_interruptible(dev->write_wq,
			((req = req_get(dev, &dev->tx_idle)) || !dev->online));
		if (!dev->online || !dev->disconnected) {
		if (!dev->online || dev->disconnected) {
			pr_debug("acc_write dev->error\n");
			r = -EIO;
			break;