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)
commita91ccd26e75235d86248d018fe3779732bcafd8d
treeaf8bcbc5090e89782c28119b09abb178e411ea9c
parent706cd17e8559c96dc883ba692c931f1ef31fbc5c
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