]> git.baikalelectronics.ru Git - kernel.git/commit
USB: f81232: fix device initialisation at open
authorJohan Hovold <jhovold@gmail.com>
Mon, 10 Jun 2013 16:29:37 +0000 (18:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2013 18:00:48 +0000 (11:00 -0700)
commit486c2e63c4c8e27b93b19ae8e07bcd8d4c2815fe
tree50f6e91ce8bb478b14da1ad0db15e93238521d5a
parente769eab498fba90f6e171ce34cef77bdda14c54d
USB: f81232: 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.

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/f81232.c