]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: fsl_easrc: Check the variable range in fsl_easrc_iec958_put_bits()
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 1 Apr 2026 09:42:24 +0000 (17:42 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 1 Apr 2026 17:24:28 +0000 (18:24 +0100)
commit00541b86fb578d4949cfdd6aff1f82d43fcf07af
tree1444d3bd29cdfe8e73861596b06a24c63351724c
parent64a496ba976324615b845d60739dfcdae3d57434
ASoC: fsl_easrc: Check the variable range in fsl_easrc_iec958_put_bits()

Add check of input value's range in fsl_easrc_iec958_put_bits(),
otherwise the wrong value may be written from user space.

Fixes: 955ac624058f ("ASoC: fsl_easrc: Add EASRC ASoC CPU DAI drivers")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://patch.msgid.link/20260401094226.2900532-10-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_easrc.c