summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/io_edgeport.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-01-12 14:56:16 +0100
committerJohan Hovold <johan@kernel.org>2017-01-16 16:38:56 +0100
commit36356a669eddb32917fc4b5c2b9b8bf80ede69de (patch)
treeb22ebd4ccc8ff200b9fca70f9876f948d7bbee51 /drivers/usb/serial/io_edgeport.c
parent750acdd781cf7e97c8c60d2ff5053dd4b12bbc84 (diff)
downloadtalos-obmc-linux-36356a669eddb32917fc4b5c2b9b8bf80ede69de.tar.gz
talos-obmc-linux-36356a669eddb32917fc4b5c2b9b8bf80ede69de.zip
USB: serial: mct_u232: fix modem-status error handling
Make sure to detect short control-message transfers so that errors are logged when reading the modem status at open. Note that while this also avoids initialising the modem status using uninitialised heap data, these bits could not leak to user space as they are currently not used. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/io_edgeport.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud