lkml.org 
[lkml]   [2022]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH 0/6] irqchip: Fix some refcount leaks
    Date
    The following patchset fix some refcount leak bugs in irqchip.
    The cause of the bugs are missing post handling of some APIs
    ——of_find_node_by_phandle(),of_find_matching_node_and_match(),
    of_get_child_by_name().
    These APIs returns node pointer with refcount incremented.
    and should use of_node_put() to release it when not needed anymore.

    I've sent patch#1 and patch#2 separately before, I move them into
    one series for better management. the content of them don't change.

    related link:
    1. patch#1: https://lore.kernel.org/r/20220526074348.23972-1-linmq006@gmail.com/
    2. patch#2: https://lore.kernel.org/r/20220517111710.37753-1-linmq006@gmail.com/

    Miaoqian Lin (6):
    irqchip/gic/realview: Fix refcount leak in realview_gic_of_init
    irqchip/apple-aic: Fix refcount leak in build_fiq_affinity
    irqchip/apple-aic: Fix refcount leak in aic_of_ic_init
    irqchip/gic-v3: Fix error handling in gic_populate_ppi_partitions
    irqchip/gic-v3: Fix refcount leak in gic_populate_ppi_partitions
    irqchip/realtek-rtl: Fix refcount leak in map_interrupts

    drivers/irqchip/irq-apple-aic.c | 2 ++
    drivers/irqchip/irq-gic-realview.c | 1 +
    drivers/irqchip/irq-gic-v3.c | 7 +++++--
    drivers/irqchip/irq-realtek-rtl.c | 2 +-
    4 files changed, 9 insertions(+), 3 deletions(-)

    --
    2.25.1

    \
     
     \ /
      Last update: 2022-06-01 10:11    [W:4.385 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site