Skip to content
Commit 278811d5 authored by Yang Yingliang's avatar Yang Yingliang Committed by Miquel Raynal
Browse files

mtd: parsers: scpart: add missing of_node_put() in scpart_parse()



of_get_child_by_name() will increase the refcount of 'ofpart_node',
so add of_node_put() after using it to avoid refcount leak.

Fixes: 9b78ef0c ("mtd: parsers: add support for Sercomm partitions")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220617014008.851583-1-yangyingliang@huawei.com
parent 6f6536a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment