diff options
author | 2022-06-17 09:40:08 +0800 | |
---|---|---|
committer | 2022-06-17 08:29:50 +0200 | |
commit | 278811d5a7b2af4e737c88ab3137d3ccc0732ac1 (patch) | |
tree | 6b61244572c2af398960888a62f89190fab7fc5e /scripts/generate_rust_analyzer.py | |
parent | mtd: st_spi_fsm: Simplify error checking in .probe() a bit (diff) | |
download | wireguard-linux-278811d5a7b2af4e737c88ab3137d3ccc0732ac1.tar.xz wireguard-linux-278811d5a7b2af4e737c88ab3137d3ccc0732ac1.zip |
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: 9b78ef0c7997 ("mtd: parsers: add support for Sercomm partitions")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220617014008.851583-1-yangyingliang@huawei.com
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions