aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/core
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2019-11-06 16:29:34 +0000
committerMark Brown <broonie@kernel.org>2019-11-06 16:29:34 +0000
commit992fd39a349ac62044d9e20d17d309c2cf0f5c27 (patch)
tree57bfb35f9faf3c13e8cec23ef00ac23206b7da52 /sound/core
parentASoC: soc-core: fixup dead-lock at snd_soc_unregister_component() (diff)
parentASoC: SOF: topology: Fix bytes control size checks (diff)
downloadwireguard-linux-992fd39a349ac62044d9e20d17d309c2cf0f5c27.tar.xz
wireguard-linux-992fd39a349ac62044d9e20d17d309c2cf0f5c27.zip
Merge branch 'for-5.4' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-5.5
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;