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

Commit a0dd42a2 authored by Johan Hovold's avatar Johan Hovold Committed by android-build-merger
Browse files

USB: serial: io_ti: fix information leak in completion handler

am: d0ef6ece

Change-Id: I982f042fae1fc32c79f2e2df0260dba3eadb25ae
parents 3c522b58 d0ef6ece
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1761,7 +1761,7 @@ static void edge_bulk_in_callback(struct urb *urb)

	port_number = edge_port->port->port_number;

	if (edge_port->lsr_event) {
	if (urb->actual_length > 0 && edge_port->lsr_event) {
		edge_port->lsr_event = 0;
		dev_dbg(dev, "%s ===== Port %u LSR Status = %02x, Data = %02x ======\n",
			__func__, port_number, edge_port->lsr_mask, *data);