Home
last modified time | relevance | path

Searched hist:e3e574ad (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/usb/serial/
H A Dftdi_sio.ce3e574ad Thu Jan 12 07:56:12 CST 2017 Johan Hovold <johan@kernel.org> USB: serial: ftdi_sio: fix latency-timer error handling

Make sure to detect short responses when reading the latency timer to
avoid using stale buffer data.

Note that no heap data would currently leak through sysfs as
ASYNC_LOW_LATENCY is set by default.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
e3e574ad Thu Jan 12 07:56:12 CST 2017 Johan Hovold <johan@kernel.org> USB: serial: ftdi_sio: fix latency-timer error handling

Make sure to detect short responses when reading the latency timer to
avoid using stale buffer data.

Note that no heap data would currently leak through sysfs as
ASYNC_LOW_LATENCY is set by default.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>