]> git.baikalelectronics.ru Git - kernel.git/commit
USB: pl2303: fix device initialisation at open
authorJohan Hovold <jhovold@gmail.com>
Mon, 10 Jun 2013 16:29:38 +0000 (18:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2013 18:00:49 +0000 (11:00 -0700)
commite94221cd1a4a1ed3d3b777934d1c23eeaf657aa4
tree149d98e65204272b6ecb73c1976fd90334bc5a49
parent0a4a695ed908bd1c04d92362dcc98fbd33358a0e
USB: pl2303: fix device initialisation at open

Do not use uninitialised termios data to determine when to configure the
device at open.

This also prevents stack data from leaking to userspace in the OOM error
path.

Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/pl2303.c