USB: serial: io_ti: fix information leak in completion handler
[pandora-kernel.git] / drivers / usb / serial / io_ti.c
index 4874973..0fc2da9 100644 (file)
@@ -1766,7 +1766,7 @@ static void edge_bulk_in_callback(struct urb *urb)
 
        port_number = edge_port->port->number - edge_port->port->serial->minor;
 
-       if (edge_port->lsr_event) {
+       if (urb->actual_length > 0 && edge_port->lsr_event) {
                edge_port->lsr_event = 0;
                dbg("%s ===== Port %u LSR Status = %02x, Data = %02x ======",
                     __func__, port_number, edge_port->lsr_mask, *data);