summaryrefslogtreecommitdiffstats
path: root/sound/firewire
diff options
context:
space:
mode:
authorColin Ian King2019-06-27 18:58:53 +0200
committerTakashi Iwai2019-06-28 10:41:17 +0200
commit3fc4147653130c5d49d07e06186628e29ba9f39d (patch)
tree8c54904723ccb91d62799875f7670168cfae5796 /sound/firewire
parentALSA: usb-audio: Sanity checks for each pipe and EP types (diff)
downloadkernel-qcow2-linux-3fc4147653130c5d49d07e06186628e29ba9f39d.tar.gz
kernel-qcow2-linux-3fc4147653130c5d49d07e06186628e29ba9f39d.tar.xz
kernel-qcow2-linux-3fc4147653130c5d49d07e06186628e29ba9f39d.zip
ALSA: xen-front: fix unintention integer overflow on left shifts
Shifting the integer value 1 is evaluated using 32-bit arithmetic and then used in an expression that expects a 64-bit value, so there is potentially an integer overflow. Fix this by using the BIT_ULL macro to perform the shift. [ Note: as of the time being, no actual integer overflow hits because all values are less than 32bit, not including the extended 3-byte or DSD formats. But this is the right fix for future usage, of course. -- tiwai ] Addresses-Coverity: ("Unintentional integer overflow") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire')
0 files changed, 0 insertions, 0 deletions