mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 05:40:55 +07:00
5b984e538b
commit 9f65df9c589f249435255da37a5dd11f1bc86f4d upstream.
As snd_fw_async_midi_port.consume_bytes is unsigned int, and
NSEC_PER_SEC is 1000000000L, the second multiplication in
port->consume_bytes * 8 * NSEC_PER_SEC / 31250
always overflows on 32-bit platforms, truncating the result. Fix this
by precalculating "NSEC_PER_SEC / 31250", which is an integer constant.
Note that this assumes port->consume_bytes <= 16777.
Fixes:
|
||
---|---|---|
.. | ||
amdtp-tascam.c | ||
Makefile | ||
tascam-hwdep.c | ||
tascam-midi.c | ||
tascam-pcm.c | ||
tascam-proc.c | ||
tascam-stream.c | ||
tascam-transaction.c | ||
tascam.c | ||
tascam.h |