diff options
| author | Fabrizio Castro <[email protected]> | 2024-10-11 17:20:03 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2024-10-15 21:54:35 +0000 |
| commit | d038109ac1c6bf619473dda03a16a6de58170f7f (patch) | |
| tree | 9cb4bfb5c7c447abaa0f0f0c85e40c7fce831893 /rust/helpers/workqueue.c | |
| parent | irqchip/riscv-intc: Fix SMP=n boot with ACPI (diff) | |
| download | kernel-d038109ac1c6bf619473dda03a16a6de58170f7f.tar.gz kernel-d038109ac1c6bf619473dda03a16a6de58170f7f.zip | |
irqchip/renesas-rzg2l: Fix missing put_device
rzg2l_irqc_common_init() calls of_find_device_by_node(), but the
corresponding put_device() call is missing. This also gets reported by
make coccicheck.
Make use of the cleanup interfaces from cleanup.h to call into
__free_put_device(), which in turn calls into put_device when leaving
function rzg2l_irqc_common_init() and variable "dev" goes out of scope.
To prevent that the device is put on successful completion, assign NULL to
"dev" to prevent __free_put_device() from calling into put_device() within
the successful path.
"make coccicheck" will still complain about missing put_device() calls,
but those are false positives now.
Fixes: 3fed09559cd8 ("irqchip: Add RZ/G2L IA55 Interrupt Controller driver")
Signed-off-by: Fabrizio Castro <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions
