]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Thu, 20 Jun 2013 19:01:38 +0000 (12:01 -0700)
commit96341bdc2ab71183c94d8fa5332eef78ada20423
tree4f9fb2cd1f1dea0fc9863cde4a3815ea4bd397b4
parent139f4ebcf7a9f71a55666a3537c16b3eaa7f18f0
USB: pl2303: fix device initialisation at open

commit 2d8f4447b58bba5f8cb895c07690434c02307eaf upstream.

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.

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