diff options
author | Miaoqian Lin <[email protected]> | 2022-06-05 11:07:23 +0400 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2022-06-09 15:03:32 +0200 |
commit | e607879b0da18c451de5e91daf239cc2f2f8ff2d (patch) | |
tree | 9c1fb649301ca1e91a26b5765728626755f199cc /lib/mpi/mpi-sub-ui.c | |
parent | 9b78ef0c7997052e9eaa0f7a4513d546fa17358c (diff) |
mtd: parsers: ofpart: Fix refcount leak in bcm4908_partitions_fw_offset
of_find_node_by_path() 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: bb17230c61a6 ("mtd: parsers: ofpart: support BCM4908 fixed partitions")
Signed-off-by: Miaoqian Lin <[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