mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
Sashiko reported the following:
> The struct clk_init_data init is declared on the stack without being
> fully zero-initialized. While fields like name, flags, parent_names,
> num_parents, and ops are explicitly assigned, the parent_data and
> parent_hws fields are left containing stack garbage.
clk_core_populate_parent_map() currently prefers the parent names over
the parent data and hws, so this isn't a problem at the moment. If that
ordering ever changed in the future, then this could lead to some
unexpected crashes. Let's just go ahead and make sure that the struct
clk_init_data is initialized to zero as a good practice.
Fixes:
|
||
|---|---|---|
| .. | ||
| clkc-tmpv770x.c | ||
| clkc.c | ||
| clkc.h | ||
| Kconfig | ||
| Makefile | ||
| pll-tmpv770x.c | ||
| pll.c | ||
| pll.h | ||
| reset.c | ||
| reset.h | ||