diff options
author | Borislav Petkov <bp@suse.de> | 2022-04-05 18:15:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-27 15:38:55 +0300 |
commit | b78d403395682bb69976ade363613803e69fcdff (patch) | |
tree | d8540211c837b36c7a3e719870bb3ebd0dd4ebf5 /drivers/gpu/drm/msm | |
parent | 9d441c2e2ad17e2decde6bc8eaa70ddcd9a7541c (diff) | |
download | linux-b78d403395682bb69976ade363613803e69fcdff.tar.xz |
ALSA: usb-audio: Fix undefined behavior due to shift overflowing the constant
[ Upstream commit 1ef8715975de8bd481abbd0839ed4f49d9e5b0ff ]
Fix:
sound/usb/midi.c: In function ‘snd_usbmidi_out_endpoint_create’:
sound/usb/midi.c:1389:2: error: case label does not reduce to an integer constant
case USB_ID(0xfc08, 0x0101): /* Unknown vendor Cable */
^~~~
See https://lore.kernel.org/r/YkwQ6%2BtIH8GQpuct@zn.tnic for the gory
details as to why it triggers with older gccs only.
[ A slight correction with parentheses around the argument by tiwai ]
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220405151517.29753-3-bp@alien8.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/msm')
0 files changed, 0 insertions, 0 deletions