Ignore:
Timestamp:
Apr 16, 2017, 3:07:01 PM (2 months ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.18/drivers/usb/serial/io_ti.c

    r25370 r31869  
    15471547        dev_dbg(dev, "%s - port_number %d, function %d, info 0x%x\n", __func__,
    15481548                port_number, function, data[1]);
     1549
     1550        if (port_number >= edge_serial->serial->num_ports) {
     1551                dev_err(dev, "bad port number %d\n", port_number);
     1552                goto exit;
     1553        }
     1554
    15491555        port = edge_serial->serial->port[port_number];
    15501556        edge_port = usb_get_serial_port_data(port);
     
    16271633        port_number = edge_port->port->port_number;
    16281634
    1629         if (edge_port->lsr_event) {
     1635        if (urb->actual_length > 0 && edge_port->lsr_event) {
    16301636                edge_port->lsr_event = 0;
    16311637                dev_dbg(dev, "%s ===== Port %u LSR Status = %02x, Data = %02x ======\n",
Note: See TracChangeset for help on using the changeset viewer.