diff options
author | Johan Hovold <johan@kernel.org> | 2017-05-11 11:41:20 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-25 14:30:13 +0200 |
commit | 4be0ae3d314c197865bc742069fa7f66e22ee8bf (patch) | |
tree | a1a24eeffc24a26c7f1aa4409e2a45d5ee6f5f37 /drivers/target/target_core_tmr.c | |
parent | 704f23f20c5effd3592453c06a77b3cbb4ab34d5 (diff) |
USB: serial: mct_u232: fix big-endian baud-rate handling
commit 26cede343656c0bc2c33cdc783771282405c7fb2 upstream.
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")
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-By: Pete Zaitcev <zaitcev@yahoo.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/target/target_core_tmr.c')
0 files changed, 0 insertions, 0 deletions