diff options
author | Miaoqian Lin <[email protected]> | 2023-01-02 12:20:39 +0400 |
---|---|---|
committer | Bartosz Golaszewski <[email protected]> | 2023-01-02 13:01:14 +0100 |
commit | 694175cd8a1643cde3acb45c9294bca44a8e08e9 (patch) | |
tree | 982876f4681019ac6f80e6f47f81d99429ff6ec6 /lib/netdev-notifier-error-inject.c | |
parent | 9883ddf9d68db5332f08dfc7283db69f69f8d6d2 (diff) |
gpio: sifive: Fix refcount leak in sifive_gpio_probe
of_irq_find_parent() returns a node pointer with refcount incremented,
We should use of_node_put() on it when not needed anymore.
Add missing of_node_put() to avoid refcount leak.
Fixes: 96868dce644d ("gpio/sifive: Add GPIO driver for SiFive SoCs")
Signed-off-by: Miaoqian Lin <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions