]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
genirq/irq_sim: Initialize work context pointers properly
authorGyeyoung Baek <gye976@gmail.com>
Thu, 12 Jun 2025 12:48:27 +0000 (21:48 +0900)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 13 Jun 2025 13:36:35 +0000 (15:36 +0200)
commit8a2277a3c9e4cc5398f80821afe7ecbe9bdf2819
tree3b3abbc7669d48484a573cd3493950f6b190c110
parent72218d74c9c57b8ea36c2a58875dff406fc10462
genirq/irq_sim: Initialize work context pointers properly

Initialize `ops` member's pointers properly by using kzalloc() instead of
kmalloc() when allocating the simulation work context. Otherwise the
pointers contain random content leading to invalid dereferencing.

Signed-off-by: Gyeyoung Baek <gye976@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250612124827.63259-1-gye976@gmail.com
kernel/irq/irq_sim.c