Re: [PATCH] clk: mstar: msc313-mpll: fix off-by-one in clock array allocation
Markus Elfring <[email protected]>
| Newsgroups | org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-clk,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
… > 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