summaryrefslogtreecommitdiffstats
path: root/fs/verity
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2022-01-19 13:31:01 +0100
committerMark Brown <broonie@kernel.org>2022-01-19 17:47:36 +0100
commit4c907bcd9dcd233da6707059d777ab389dcbd964 (patch)
tree46728b53188c7d1e8c64c058aaad02bc0a5e6fad /fs/verity
parentASoC: cpcap: Check for NULL pointer after calling of_get_child_by_name (diff)
downloadlinux-4c907bcd9dcd233da6707059d777ab389dcbd964.tar.xz
linux-4c907bcd9dcd233da6707059d777ab389dcbd964.zip
ASoC: max9759: fix underflow in speaker_gain_control_put()
Check for negative values of "priv->gain" to prevent an out of bounds access. The concern is that these might come from the user via: -> snd_ctl_elem_write_user() -> snd_ctl_elem_write() -> kctl->put() Fixes: fa8d915172b8 ("ASoC: max9759: Add Amplifier Driver") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20220119123101.GA9509@kili Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'fs/verity')
0 files changed, 0 insertions, 0 deletions