Commit 63ff545
gpio/rockchip: fix refcount leak in rockchip_gpiolib_register()
The node returned by of_get_parent() with refcount incremented,
of_node_put() needs be called when finish using it. So add it in the
end of of_pinctrl_get().
Fixes: 936ee26 ("gpio/rockchip: add driver for rockchip gpio")
Signed-off-by: Wang Yufen <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>1 parent 45fecdb commit 63ff545
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
| 613 | + | |
613 | 614 | | |
614 | 615 | | |
615 | 616 | | |
| |||
0 commit comments