]> 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>
Tue, 12 Jun 2012 23:09:49 +0000 (16:09 -0700)
commit1aa3c63cf0a79153ee13c8f82e4eb6c40b66a161
tree08025ab4bd2647cc69f5e73a27be36e8984203bb
parent42ca7da1c2363dbef4ba1b6917c4c02274b6a5e2
USB: mct_u232: Fix incorrect TIOCMSET return

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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/mct_u232.c