Skip to content
Commit e607879b authored by Miaoqian Lin's avatar Miaoqian Lin Committed by Miquel Raynal
Browse files

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: bb17230c ("mtd: parsers: ofpart: support BCM4908 fixed partitions")
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220605070726.5979-1-linmq006@gmail.com
parent 9b78ef0c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment