kernel-hacking-2024-linux-s.../sound
Colin Ian King 50b1affc89 ALSA: usb-audio: Fix unintentional sign extension issue
The shifting of the u8 integer device by 24 bits to the left will
be promoted to a 32 bit signed int and then sign-extended to a
64 bit unsigned long. In the event that the top bit of device is
set then all then all the upper 32 bits of the unsigned long will
end up as also being set because of the sign-extension. Fix this
by casting device to an unsigned long before the shift.

Addresses-Coverity: ("Unintended sign extension")
Fixes: a07df82c79 ("ALSA: usb-audio: Add DJM750 to Pioneer mixer quirk")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210318132008.15266-1-colin.king@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-03-18 14:25:13 +01:00
..
ac97
aoa
arm ARM updates for 5.12-rc1: 2021-02-22 14:27:07 -08:00
atmel
core ASoC: Updates for v5.12 2021-02-17 21:16:27 +01:00
drivers
firewire ALSA: dice: fix null pointer dereference when node is disconnected 2021-03-12 14:12:53 +01:00
hda ALSA: hda: ignore invalid NHLT table 2021-03-04 09:14:36 +01:00
i2c
isa
mips ALSA: n64: Fix return value check in n64audio_probe() 2021-02-25 10:29:13 +01:00
oss
parisc
pci ALSA: hda/realtek: fix mute/micmute LEDs for HP 850 G8 2021-03-16 15:06:21 +01:00
pcmcia
ppc
sh
soc Merge series "Do not handle MCLK device clock in simple-card-utils" from Sameer Pujar <spujar@nvidia.com>: 2021-03-16 17:55:37 +00:00
sparc
spi
synth
usb ALSA: usb-audio: Fix unintentional sign extension issue 2021-03-18 14:25:13 +01:00
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c