mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
USB: serial: io_ti: fix information leak in completion handler
am: 72bb2b96b8
Change-Id: Ie1079bef9c43dce4ccecb52acbee12b4dd044e3f
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user