summaryrefslogtreecommitdiff
path: root/sound/soc/sdca/sdca_functions.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2025-07-24 15:46:21 +0300
committerTakashi Iwai <tiwai@suse.de>2025-07-24 15:46:21 +0300
commit0aa9e51298aedd39bc46b0aa61ef2043075cd70a (patch)
tree5834e8e6f9f27594caa34778d9ea91f6c743e8ad /sound/soc/sdca/sdca_functions.c
parentab29b3460c5cec24bde75278d7ffca23cac1b867 (diff)
parent0d57ed922b9a9b0d36c90a992e076d850b779be5 (diff)
downloadlinux-0aa9e51298aedd39bc46b0aa61ef2043075cd70a.tar.xz
Merge branch 'for-linus' into for-next
Merge the last-piece from 6.16 devel branch to sync the code base. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/sdca/sdca_functions.c')
-rw-r--r--sound/soc/sdca/sdca_functions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sdca/sdca_functions.c b/sound/soc/sdca/sdca_functions.c
index 64ac26443890..de213a69e0da 100644
--- a/sound/soc/sdca/sdca_functions.c
+++ b/sound/soc/sdca/sdca_functions.c
@@ -211,7 +211,7 @@ static int find_sdca_init_table(struct device *dev,
} else if (num_init_writes % sizeof(*raw) != 0) {
dev_err(dev, "%pfwP: init table size invalid\n", function_node);
return -EINVAL;
- } else if (num_init_writes > SDCA_MAX_INIT_COUNT) {
+ } else if ((num_init_writes / sizeof(*raw)) > SDCA_MAX_INIT_COUNT) {
dev_err(dev, "%pfwP: maximum init table size exceeded\n", function_node);
return -EINVAL;
}