USB: oti6858: do not call set_termios with uninitialised data
authorJohan Hovold <jhovold@gmail.com>
Wed, 26 Jun 2013 14:47:31 +0000 (16:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 23:24:33 +0000 (16:24 -0700)
commitdc43ff924d0d29e53e3f4d26db2c4265b1aa5a2a
treee339833acb19fcf16a2b62ec45e63a1bb6dd96b9
parent3ba19fe31b726371b45f91a8de9341f5625e75e4
USB: oti6858: do not call set_termios with uninitialised data

Make sure set_termios is not called with uninitialised data at open. The
old termios struct is currently not used, but pass NULL instead to avoid
future problems (e.g. stack data leak).

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