diff options
| author | Peng Fan <[email protected]> | 2024-05-04 13:20:16 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2024-06-26 09:59:31 +0000 |
| commit | 7f500f2011c0bbb6e1cacab74b4c99222e60248e (patch) | |
| tree | 6124765f79429f30d9e0efc83bf7aaaec65dc3fe /lib/test_xarray.c | |
| parent | pinctrl: pinconf-generic: Use scope based of_node_put() cleanups (diff) | |
| download | kernel-7f500f2011c0bbb6e1cacab74b4c99222e60248e.tar.gz kernel-7f500f2011c0bbb6e1cacab74b4c99222e60248e.zip | |
pinctrl: freescale: mxs: Fix refcount of child
of_get_next_child() will increase refcount of the returned node, need
use of_node_put() on it when done.
Per current implementation, 'child' will be override by
for_each_child_of_node(np, child), so use of_get_child_count to avoid
refcount leakage.
Fixes: 17723111e64f ("pinctrl: add pinctrl-mxs support")
Signed-off-by: Peng Fan <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions
