diff options
| author | Mark Brown <broonie@kernel.org> | 2024-10-07 14:53:15 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2024-10-07 14:53:15 +0100 |
| commit | c2a59c892f20379a3e48124a83491a12374cd7e0 (patch) | |
| tree | 7f280fc4108d8ace769ba2e2368a53d71dcdbe4b /sound/core/control.c | |
| parent | eb6c65049a274c37f9b6fdf632843b609a0b8fa8 (diff) | |
| parent | 8cf0b93919e13d1e8d4466eb4080a4c4d9d66d7b (diff) | |
spi: Merge up v6.12
Fixes build issues with the KVM selftests.
Diffstat (limited to 'sound/core/control.c')
| -rw-r--r-- | sound/core/control.c | 2 |
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; |