]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: Hold a reference for of_find_compatible_node()
authorLiang He <windhl@126.com>
Tue, 28 Jun 2022 02:16:40 +0000 (10:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jul 2022 08:36:04 +0000 (10:36 +0200)
commite6be6a14b42701329076201e0604db627250c868
tree35adf28c9e06e2eb8fce9e77d7fee4b0d8ff7f2c
parent082e2d1ca451a45d0d34cb384032a42afe90b485
firmware: Hold a reference for of_find_compatible_node()

In of_register_trusted_foundations(), we need to hold the reference
returned by of_find_compatible_node() and then use it to call
of_node_put() for refcount balance.

Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220628021640.4015-1-windhl@126.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/firmware/trusted_foundations.h