summaryrefslogtreecommitdiffstats
path: root/sound/firewire
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-06-27 17:58:53 +0100
committerTakashi Iwai <tiwai@suse.de>2019-06-28 10:41:17 +0200
commit3fc4147653130c5d49d07e06186628e29ba9f39d (patch)
tree8c54904723ccb91d62799875f7670168cfae5796 /sound/firewire
parent801ebf1043ae7b182588554cc9b9ad3c14bc2ab5 (diff)
downloadlinux-3fc4147653130c5d49d07e06186628e29ba9f39d.tar.bz2
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