Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
Linux-Kernel Archive: [PATCH] mips: pic32: pic32mzda: Add missing of_node_put() in init.c [PATCH] mips: pic32: pic32mzda: Add missing of_node_put() in init.c From: Liang He Date: Wed Jun 15 2022 - 11:29:47 EST Next message: Mauro Carvalho Chehab: "[PATCH 4/6] drm/i915/gt: Only invalidate TLBs exposed to user manipulation" Previous message: Christian Göttsche: "[PATCH v3 8/8] net: use new capable_any functionality" Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] In pic32_of_prepare_platform_data(), of_find_compatible_node() will return a node pointer with refcount incremented. We should use of_node_put() when it is not used anymore. Signed-off-by: Liang He --- arch/mips/pic32/pic32mzda/init.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/mips/pic32/pic32mzda/init.c b/arch/mips/pic32/pic32mzda/init.c index 129915616763..2b134d5d54e1 100644 --- a/arch/mips/pic32/pic32mzda/init.c +++ b/arch/mips/pic32/pic32mzda/init.c @@ -99,9 +99,13 @@ static int __init pic32_of_prepare_platform_data(struct of_dev_auxdata *lookup) if (np) { lookup->name = (char *)np->name; if (lookup->phys_addr) + { + of_node_put(np); continue; + } if (!of_address_to_resource(np, 0, &res)) lookup->phys_addr = res.start; + of_node_put(np); } } -- 2.25.1 Next message: Mauro Carvalho Chehab: "[PATCH 4/6] drm/i915/gt: Only invalidate TLBs exposed to user manipulation" Previous message: Christian Göttsche: "[PATCH v3 8/8] net: use new capable_any functionality" Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]