audio: fix integer overflow
commit40ad46d3cc463fab5a23db466f77e37aff23f927
authorVolker Rümelin <vr_qemu@t-online.de>
Thu, 19 Dec 2019 20:34:05 +0000 (19 21:34 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 6 Jan 2020 07:47:16 +0000 (6 08:47 +0100)
tree570b69d511a35fd247337824b073386290aaaed0
parent7c9eb86e679b3b6992f97bd60440dbd1a9a75929
audio: fix integer overflow

Tell the compiler to do a 32bit * 32bit -> 64bit multiplication
because period_ticks is a 64bit variable. The overflow occurs
for audio timer periods larger than 4294967us.

Fixes: be1092afa0 "audio: fix audio timer rate conversion bug"

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Message-id: 8893a235-66a8-8fbe-7d95-862e29da90b1@t-online.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/audio.c