]> git.baikalelectronics.ru Git - kernel.git/commit
USB: mos7840: fix tiocmget error handling
authorJohan Hovold <jhovold@gmail.com>
Wed, 9 Oct 2013 15:01:09 +0000 (17:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Oct 2013 00:01:25 +0000 (17:01 -0700)
commit917e45a086858893c25ac32e66821ac652971f14
treeaf8bcbc5090e89782c28119b09abb178e411ea9c
parentff301c44700e12386d0e35f7b468caf2bba1ee13
USB: mos7840: fix tiocmget error handling

Make sure to return errors from tiocmget rather than rely on
uninitialised stack data.

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