diff options
author | Johan Hovold <johan@kernel.org> | 2017-05-11 12:41:20 +0300 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2017-05-15 12:51:15 +0300 |
commit | 26cede343656c0bc2c33cdc783771282405c7fb2 (patch) | |
tree | a3f6d25d62b373a84fc8fdf1cc76cdac27ad8c73 /fs/file_table.c | |
parent | ad0ccac76dcc92c3331f4c94c9fc54f8bf1ab20c (diff) | |
download | linux-26cede343656c0bc2c33cdc783771282405c7fb2.tar.xz |
USB: serial: mct_u232: fix big-endian baud-rate handling
Drop erroneous cpu_to_le32 when setting the baud rate, something which
corrupted the divisor on big-endian hosts.
Found using sparse:
warning: incorrect type in argument 1 (different base types)
expected unsigned int [unsigned] [usertype] val
got restricted __le32 [usertype] <noident>
Fixes: af2ac1a091bc ("USB: serial mct_usb232: move DMA buffers to heap")
Cc: stable <stable@vger.kernel.org> # 2.6.34
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-By: Pete Zaitcev <zaitcev@yahoo.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'fs/file_table.c')
0 files changed, 0 insertions, 0 deletions