]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: mct_u232: Fix incorrect TIOCMSET return
authorAlan Cox <alan@linux.intel.com>
Tue, 22 May 2012 19:45:13 +0000 (20:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Jun 2012 18:36:58 +0000 (11:36 -0700)
commit8951420c6c7a04504659319692435ac627f3f795
tree84e711996dbd97d87091a5c0aa4632bf003bd33d
parentc1cbfb94dab7c2f5092d0eef4ce87fdb4119a7ce
USB: mct_u232: Fix incorrect TIOCMSET return

commit 1aa3c63cf0a79153ee13c8f82e4eb6c40b66a161 upstream.

The low level helper returns 1 on success. The ioctl should however return
0. As this is the only user of the helper return, make the helper return 0 or
an error code.

Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=43009
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/mct_u232.c