提交 8f65a370 编写于 作者: K kernel test robot 提交者: Zheng Zengkai

usb: gadget: aspeed: add missing of_node_put

stable inclusion
from stable-5.10.15
commit 4025244544b802d15eee76840702a3088b89624b
bugzilla: 48167

--------------------------------

commit a55a9a4c upstream.

Breaking out of for_each_child_of_node requires a put on the
child value.

Generated by: scripts/coccinelle/iterators/for_each_child.cocci

Fixes: 82c2d813 ("coccinelle: iterators: Add for_each_child.cocci script")
CC: Sumera Priyadarsini <sylphrenadin@gmail.com>
Reported-by: Nkernel test robot <lkp@intel.com>
Signed-off-by: Nkernel test robot <lkp@intel.com>
Signed-off-by: NJulia Lawall <julia.lawall@inria.fr>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/alpine.DEB.2.22.394.2101211907060.14700@hadrienSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 d0f77b76
...@@ -999,9 +999,11 @@ static int ast_vhub_of_parse_str_desc(struct ast_vhub *vhub, ...@@ -999,9 +999,11 @@ static int ast_vhub_of_parse_str_desc(struct ast_vhub *vhub,
str_array[offset].s = NULL; str_array[offset].s = NULL;
ret = ast_vhub_str_alloc_add(vhub, &lang_str); ret = ast_vhub_str_alloc_add(vhub, &lang_str);
if (ret) if (ret) {
of_node_put(child);
break; break;
} }
}
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册