]> 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)
commit571d0138e77f16ff374d8c8ebbb02f1d8934641d
tree50f6e91ce8bb478b14da1ad0db15e93238521d5a
parent9e1371520a92846c7d09a055043a55a8e212b7aa
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