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:36:48 +0000 (15:36 +0100)
commit7434723ba87267dc9547b09fb9ac584a98103b76
treef8d3eee01b3bb9b876e84e981310ee141f97bbf2
parent1fce0adc143d76a81c414854dbaddc7252d894d1
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