diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-06-27 17:43:08 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-10 09:56:43 +0200 |
commit | 52e0b9fcd6f60cf66a30d33216aad6148bdaebb7 (patch) | |
tree | 3e7ec69ddcefa27e00610bf071d26759e271b19e /drivers/tty/rocket.c | |
parent | 3864c897a7d92af7c410faed1f5330fc4610e30e (diff) |
ALSA: usb-audio: fix sign unintended sign extension on left shifts
commit 2acf5a3e6e9371e63c9e4ff54d84d08f630467a0 upstream.
There are a couple of left shifts of unsigned 8 bit values that
first get promoted to signed ints and hence get sign extended
on the shift if the top bit of the 8 bit values are set. Fix
this by casting the 8 bit values to unsigned ints to stop the
unintentional sign extension.
Addresses-Coverity: ("Unintended sign extension")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/rocket.c')
0 files changed, 0 insertions, 0 deletions