mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] genirq/irq_sim: Initialize pointers properly.
@ 2025-06-12 12:48 Gyeyoung Baek
  2025-06-13 13:43 ` [tip: irq/urgent] genirq/irq_sim: Initialize work context " tip-bot2 for Gyeyoung Baek
  0 siblings, 1 reply; 2+ messages in thread
From: Gyeyoung Baek @ 2025-06-12 12:48 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: linux-kernel, Gyeyoung Baek

Initialize `ops` member's pointers properly.

Signed-off-by: Gyeyoung Baek <gye976@gmail.com>
---
Changelog:

v2:
 - Edit commit message and subject. 
 - Use kzalloc() to initialize simply.
---
 kernel/irq/irq_sim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/irq/irq_sim.c b/kernel/irq/irq_sim.c
index 1a3d483548e2..ae4c9cbd1b4b 100644
--- a/kernel/irq/irq_sim.c
+++ b/kernel/irq/irq_sim.c
@@ -202,7 +202,7 @@ struct irq_domain *irq_domain_create_sim_full(struct fwnode_handle *fwnode,
 					      void *data)
 {
 	struct irq_sim_work_ctx *work_ctx __free(kfree) =
-				kmalloc(sizeof(*work_ctx), GFP_KERNEL);
+				kzalloc(sizeof(*work_ctx), GFP_KERNEL);
 
 	if (!work_ctx)
 		return ERR_PTR(-ENOMEM);
-- 
2.43.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-13 13:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-12 12:48 [PATCH v2] genirq/irq_sim: Initialize pointers properly Gyeyoung Baek
2025-06-13 13:43 ` [tip: irq/urgent] genirq/irq_sim: Initialize work context " tip-bot2 for Gyeyoung Baek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®