aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/compress_offload.c
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/compress_offload.c
parentALSA: timer: Fix incorrectly assigned timer instance (diff)
parentASoC: SOF: topology: Fix bytes control size checks (diff)
downloadlinux-dev-df37d941c4b5aee9259ab4e34de8bfda384f7681.tar.xz
linux-dev-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/compress_offload.c')
-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;