diff options
author | Miaoqian Lin <[email protected]> | 2022-05-26 15:06:49 +0400 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2022-06-09 15:03:32 +0200 |
commit | 9f7e62815cf3cbbcb1b8cb21649fb4dfdb3aa016 (patch) | |
tree | 2eec70c96c443cd34d7ed389a983e94d62219c80 /lib/mpi/mpi-sub-ui.c | |
parent | a61528d997619a518ee8c51cf0ef0513021afaff (diff) |
mtd: partitions: Fix refcount leak in parse_redboot_of
of_get_child_by_name() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not need anymore.
Add missing of_node_put() to avoid refcount leak.
Fixes: 237960880960 ("mtd: partitions: redboot: seek fis-index-block in the right node")
Signed-off-by: Miaoqian Lin <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions