Skip to content
Commit 7a7f5857 authored by Pierre Gondois's avatar Pierre Gondois Committed by Rob Herring
Browse files

of: base: Shift refcount decrement in of_find_last_cache_level()



Currently, of_find_next_cache_node() and of_property_read_u32()
are called on objects after their refcount have been decremented.
Re-order the calls to decrement the refcount after the function
calls.

Signed-off-by: default avatarPierre Gondois <pierre.gondois@arm.com>
Link: https://lore.kernel.org/r/20220930144936.2882481-1-pierre.gondois@arm.com


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent abb1bc7e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment