ASoC: compress: fix unsigned integer overflow check
authorXiaojun Sang <xsang@codeaurora.org>
Mon, 21 Oct 2019 09:54:32 +0000 (10:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:34:06 +0000 (15:34 +0100)
commit14b702a33de5765654c0d3b15f4a17a965cadf91
tree338d0c7c0713fc6cf51a714b6f568c60fa4e89a9
parent6620daa748cbad3de5824143e107a9a545f3c1df
ASoC: compress: fix unsigned integer overflow check

[ Upstream commit d3645b055399538415586ebaacaedebc1e5899b0 ]

Parameter fragments and fragment_size are type of u32. U32_MAX is
the correct check.

Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20191021095432.5639-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/core/compress_offload.c