mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
These > comparisons should be >= to prevent reading beyond the end of
of the clk_data->hws[] buffer.
The clk_data->hws[] array is allocated in cp110_syscon_common_probe()
when we do:
cp110_clk_data = devm_kzalloc(dev, sizeof(*cp110_clk_data) +
sizeof(struct clk_hw *) * CP110_CLK_NUM,
GFP_KERNEL);
As you can see, it has CP110_CLK_NUM elements which is equivalent to
CP110_MAX_CORE_CLOCKS + CP110_MAX_GATABLE_CLOCKS.
Fixes:
|
||
|---|---|---|
| .. | ||
| ap806-system-controller.c | ||
| armada-37xx-periph.c | ||
| armada-37xx-tbg.c | ||
| armada-37xx-xtal.c | ||
| armada-38x.c | ||
| armada-39x.c | ||
| armada-370.c | ||
| armada-375.c | ||
| armada-xp.c | ||
| clk-corediv.c | ||
| clk-cpu.c | ||
| common.c | ||
| common.h | ||
| cp110-system-controller.c | ||
| dove-divider.c | ||
| dove-divider.h | ||
| dove.c | ||
| Kconfig | ||
| kirkwood.c | ||
| Makefile | ||
| mv98dx3236.c | ||
| orion.c | ||