Commit 76d964e9 authored by Mark Brown's avatar Mark Brown Committed by Zheng Zengkai
Browse files

ASoC: ops: Fix off by one in range control validation

stable inclusion
from stable-v5.10.132
commit 13fb9105cfc9693d1218ab8a6dbf7a51abd1333d
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5YS3T

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=13fb9105cfc9693d1218ab8a6dbf7a51abd1333d



--------------------------------

[ Upstream commit 5871321f ]

We currently report that range controls accept a range of 0..(max-min) but
accept writes in the range 0..(max-min+1). Remove that extra +1.

Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220604105246.4055214-1-broonie@kernel.org


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent ddf695d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment