]> 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)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 19 Jun 2012 22:18:22 +0000 (23:18 +0100)
commit85887743d0201c3b422a722d6d5e43f27a139782
tree7d58ce2e8b0813552e57fe122fda461e51565f37
parent0942852bf06ba780fe0c73e22ada76ab6fb7eb21
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/serial/mct_u232.c