diff options
author | Borislav Petkov <[email protected]> | 2022-04-05 17:15:08 +0200 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2022-04-05 18:22:13 +0200 |
commit | 1ef8715975de8bd481abbd0839ed4f49d9e5b0ff (patch) | |
tree | b7f48de81d878cef45fdfc9527924967684c3384 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | c9db8a30d9f091aa571b5fb7c3f434cde107b02c (diff) |
ALSA: usb-audio: Fix undefined behavior due to shift overflowing the constant
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%[email protected] 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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions