]> 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)
commit04af4a3701924384ea635774e05266bafa5bba52
treeaf8bcbc5090e89782c28119b09abb178e411ea9c
parentcff4b7c1ccd1d3b7efaf94d45673ab036ae3c912
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