Re: [PATCH] clk: mstar: msc313-mpll: fix off-by-one in clock array allocation
From: Markus Elfring
Date: Mon Aug 24 2026 - 07:30:49 EST
…
> Use NUMOUTPUTS as the element count so the allocation matches the
> number of clocks actually stored and exposed.
>
> Found by smatch:
> drivers/clk/mstar/clk-msc313-mpll.c:134 msc313_mpll_probe()
> error: buffer overflow 'mpll->clk_data->hws' 7 <= 7
How do you think about to add any tags (like “Fixes” and “Cc”) accordingly?
See also:
* https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v7.2#n145
* https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/stable-kernel-rules.rst?h=v7.2#n34
Regards,
Markus