mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-04 01:36:58 -05:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
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:
|
||
| .. | ||
| bebob | ||
| dice | ||
| digi00x | ||
| fireface | ||
| fireworks | ||
| motu | ||
| oxfw | ||
| tascam | ||
| amdtp-am824.c | ||
| amdtp-am824.h | ||
| amdtp-stream-trace.h | ||
| amdtp-stream.c | ||
| amdtp-stream.h | ||
| cmp.c | ||
| cmp.h | ||
| fcp.c | ||
| fcp.h | ||
| isight.c | ||
| iso-resources.c | ||
| iso-resources.h | ||
| Kconfig | ||
| lib.c | ||
| lib.h | ||
| Makefile | ||
| packets-buffer.c | ||
| packets-buffer.h | ||