summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2026-08-21 12:08:05 +0200
committerIwona Winiarska <iwona.winiarska@intel.com>2026-09-25 22:19:32 +0200
commitfa7602b14d8962e847afb0dcedea064d36bbdb98 (patch)
treec97668f458c51b8ae7a2ae5f511a89152bb0a177 /drivers
parent93f51579e7df248780214094418f205253383cc5 (diff)
peci: controller: aspeed: 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: Iwona Winiarska <iwona.winiarska@intel.com> Reviewed-by: Brian Masney <bmasney@redhat.com> Link: https://lore.kernel.org/r/48aa77c45e109f78ccd806bc3b7bf380c5bc5e71.1787240145.git.geert+renesas@glider.be Signed-off-by: Iwona Winiarska <iwona.winiarska@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/peci/controller/peci-aspeed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/peci/controller/peci-aspeed.c b/drivers/peci/controller/peci-aspeed.c
index a0c99ecf7f38..2f4ea0e7d7a7 100644
--- a/drivers/peci/controller/peci-aspeed.c
+++ b/drivers/peci/controller/peci-aspeed.c
@@ -413,7 +413,7 @@ static struct clk *devm_aspeed_peci_register_clk_div(struct device *dev, struct
struct aspeed_peci *priv)
{
struct clk_aspeed_peci *peci_clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
const char *parent_name;
char name[32];
int ret;