summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorWeigang He <geoffreyhe2@gmail.com>2026-06-10 15:06:24 +1000
committerFrank Li <Frank.Li@nxp.com>2026-06-29 15:57:17 -0400
commit936407c3563ac745cbbb9953c0cf2472128a22f4 (patch)
tree3220016f623a74d8b655ba54f74155f82c6890cc /tools/perf/scripts/python/task-analyzer.py
parentb24c12e1bad863d27141e4e9c19d25eebd68c4a6 (diff)
ARM: imx: fix device_node refcount leak in imx_src_init()
imx_src_init() obtains a device_node reference via of_find_compatible_node() matching "fsl,imx51-src" and uses it only to call of_iomap(). It never releases that reference: on the success path the function returns at the end without of_node_put(np), leaking one device_node refcount on every boot of an i.MX5/6 platform. Release the reference right after of_iomap(). of_iomap() maps the node's registers but does not retain a reference to the device_node, so the node can be put once the mapping is done. The early return on a NULL np needs no put. Found by static analysis tool CodeQL. Fixes: bd3d924d71a4 ("ARM i.MX5: Add System Reset Controller (SRC) support for i.MX51 and i.MX53") Signed-off-by: Weigang He <geoffreyhe2@gmail.com> Signed-off-by: Frank Li <Frank.Li@nxp.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions