[PATCH v2] soc: sifive: (sifive_l2_cache) Add missing of_node_put()
Liang He
windhl at 126.com
Wed Jun 15 22:54:38 PDT 2022
At 2022-06-16 12:49:15, "Liang He" <windhl at 126.com> wrote:
>In sifive_l2_init(), of_find_matching_node() will return a node pointer
>with refcount incremented. We should use of_node_put() in each fail path
>or when it is not used anymore.
>
>Reported-by: kernel test robot <lkp at intel.com>
>
>Signed-off-by: Liang He <windhl at 126.com>
>---
Sorry, please ignore this version as it still has a bug. I will have a strict check and compile the code before my next commit.
More information about the linux-riscv
mailing list