summaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-11-07 13:52:17 +0100
committerTakashi Iwai <tiwai@suse.de>2019-11-07 13:52:17 +0100
commitdf37d941c4b5aee9259ab4e34de8bfda384f7681 (patch)
tree485d9bd2c2d6fe3d262be1f8f66bfe7b86e7fd71 /sound/core
parente7af6307a8a54f0b873960b32b6a644f2d0fbd97 (diff)
parent9508ef5a980f5d847cad9b932b6ada8f2a3466c1 (diff)
downloadblackbird-op-linux-df37d941c4b5aee9259ab4e34de8bfda384f7681.tar.gz
blackbird-op-linux-df37d941c4b5aee9259ab4e34de8bfda384f7681.zip
Merge tag 'asoc-fix-v5.4-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v5.4 These are a collection of fixes since v5.4-rc4 that have accumilated, they're all driver specific and there's nothing major in here so it's probably not essential to actually send them but I'll leave that call to you.
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/compress_offload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c
index 41905afada63..f34ce564d92c 100644
--- a/sound/core/compress_offload.c
+++ b/sound/core/compress_offload.c
@@ -528,7 +528,7 @@ static int snd_compress_check_input(struct snd_compr_params *params)
{
/* first let's check the buffer parameter's */
if (params->buffer.fragment_size == 0 ||
- params->buffer.fragments > INT_MAX / params->buffer.fragment_size ||
+ params->buffer.fragments > U32_MAX / params->buffer.fragment_size ||
params->buffer.fragments == 0)
return -EINVAL;
OpenPOWER on IntegriCloud