diff options
author | Liang He <[email protected]> | 2022-07-01 20:18:04 +0800 |
---|---|---|
committer | Geert Uytterhoeven <[email protected]> | 2022-07-05 09:08:35 +0200 |
commit | 75a185fb92e58ccd3670258d8d3b826bd2fa6d29 (patch) | |
tree | 3e81ee1e793858fed4968cdbc0e8f80548f694f9 /drivers/usb/cdns3/cdns3-trace.c | |
parent | f2906aa863381afb0015a9eb7fefad885d4e5a56 (diff) |
ARM: shmobile: rcar-gen2: Increase refcount for new reference
In rcar_gen2_regulator_quirk(), for_each_matching_node_and_match() will
automatically increase and decrease the refcount. However, we should
call of_node_get() for the new reference created in 'quirk->np'.
Besides, we also should call of_node_put() before the 'quirk' being
freed.
Signed-off-by: Liang He <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Geert Uytterhoeven <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions