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

Commit 49207306 authored by Chandana Kishori Chiluveru's avatar Chandana Kishori Chiluveru
Browse files

usb: gadget: serial: Increment write_started flag for zlp packet



Current serial driver do not increment the write_started variable
while queueing ZLP packet on IN endpoint. But it is decremented from
completion handler and causing  write_started count going to negative
number. Hence make changes to add this.

Change-Id: I7873fbc0ca8b1f4e6b94d68aa49083d9327a9658
Signed-off-by: default avatarChandana Kishori Chiluveru <cchiluve@codeaurora.org>
parent 1a5123de
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -415,6 +415,8 @@ __acquires(&port->port_lock)
					printk(KERN_ERR "%s: %s err %d\n",
					__func__, "queue", status);
					list_add(&req->list, pool);
				} else {
					port->write_started++;
				}
				prev_len = 0;
			}