cacheinfo: Decrement refcount in cache_setup_of_node()
authorPierre Gondois <pierre.gondois@arm.com>
Wed, 26 Oct 2022 18:59:54 +0000 (20:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2022 17:33:28 +0000 (18:33 +0100)
commit3da72e18371c41a6f6f96b594854b178168c7757
tree27263c5a93a9957ff225fae244c01e6d212d9527
parent189a87f8ef8ceed16b2a230dc0ce65117068ac30
cacheinfo: Decrement refcount in cache_setup_of_node()

Refcounts to DT nodes are only incremented in the function
and never decremented. Decrease the refcounts when necessary.

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Link: https://lore.kernel.org/r/20221026185954.991547-1-pierre.gondois@arm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/cacheinfo.c