Skip to content
Commit b674bcb1 authored by Liang He's avatar Liang He Committed by Guenter Roeck
Browse files

hwmon: (gsc-hwmon) Add missing of_node_put()



In gsc_hwmon_get_devtree_pdata(), of_find_compatible_node() will return
a node pointer with refcount incremented. We should use of_node_put() in
fail path or when it is not used anymore.

Signed-off-by: default avatarLiang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220616114024.3985770-1-windhl@126.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 489dd8f0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment