diff options
| author | Geert Uytterhoeven <geert+renesas@glider.be> | 2026-08-21 12:06:03 +0200 |
|---|---|---|
| committer | Ulf Hansson <ulfh@kernel.org> | 2026-09-08 18:08:05 +0200 |
| commit | 9dc0aebe7b3391ff9161d0a79b34709211de2001 (patch) | |
| tree | f9affc793a61e0fd51b5b534ee15d572e0d5424b | |
| parent | bcd0398aaa2c302d03fc11b485665ea2aed29fcb (diff) | |
| download | linux-next-9dc0aebe7b3391ff9161d0a79b34709211de2001.tar.gz linux-next-9dc0aebe7b3391ff9161d0a79b34709211de2001.zip | |
mmc: meson-gx: Make sure clk_init_data is fully initialized
The clk_init_data structure contains several mutually-exclusive members
for different methods to specify the possible parents of a clock,
prompting drivers to initialize only the members they need. However,
not initializing all members may cause subtle issues, which are only
exposed when CONFIG_INIT_STACK_ALL_PATTERN or CONFIG_INIT_STACK_NONE is
enabled.
Make sure all members are fully initialized, to avoid such bugs, and to
prevent future breakage when converting drivers to a different method
for specifying the parents.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Ulf Hansson <ulfh@kernel.org>
| -rw-r--r-- | drivers/mmc/host/meson-gx-mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index d2903e3dfd6f..4d0a8f0891af 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -418,7 +418,7 @@ static int meson_mmc_clk_set(struct meson_host *host, unsigned long rate, */ static int meson_mmc_clk_init(struct meson_host *host) { - struct clk_init_data init; + struct clk_init_data init = {}; struct clk_mux *mux; struct clk_divider *div; char clk_name[32]; |
