aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/control.c
diff options
context:
space:
mode:
authorMark Brown <[email protected]>2024-10-07 13:01:00 +0000
committerMark Brown <[email protected]>2024-10-07 13:01:00 +0000
commit85eadae61931f6268b49b5722039e5a248b9ee4c (patch)
tree3ee81f25a394ce2a2ec706f0aff07515b78d4b01 /sound/core/control.c
parentAdd of_regulator_get_optional() and Fix MTK Power (diff)
parentLinux 6.12-rc2 (diff)
downloadkernel-85eadae61931f6268b49b5722039e5a248b9ee4c.tar.gz
kernel-85eadae61931f6268b49b5722039e5a248b9ee4c.zip
regulator: Merge up v6.12-rc2
Pulls in a build fix for the KVM selftests.
Diffstat (limited to 'sound/core/control.c')
-rw-r--r--sound/core/control.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/core/control.c b/sound/core/control.c
index 2f790a7b1e90..0ddade871b52 100644
--- a/sound/core/control.c
+++ b/sound/core/control.c
@@ -1641,6 +1641,8 @@ static int snd_ctl_elem_add(struct snd_ctl_file *file,
count = info->owner;
if (count == 0)
count = 1;
+ if (count > MAX_CONTROL_COUNT)
+ return -EINVAL;
/* Arrange access permissions if needed. */
access = info->access;