diff options
| author | Felix Gu <ustc.gu@gmail.com> | 2026-01-30 00:21:19 +0800 |
|---|---|---|
| committer | Luca Ceresoli <luca.ceresoli@bootlin.com> | 2026-02-10 15:18:36 +0100 |
| commit | fef0e649f8b42bdffe4a916dd46e1b1e9ad2f207 (patch) | |
| tree | f85ee31f9cb27b818974c85a63318555298314e1 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 5023ca80f9589295cb60735016e39fc5cc714243 (diff) | |
drm/logicvc: Fix device node reference leak in logicvc_drm_config_parse()
The logicvc_drm_config_parse() function calls of_get_child_by_name() to
find the "layers" node but fails to release the reference, leading to a
device node reference leak.
Fix this by using the __free(device_node) cleanup attribute to automatic
release the reference when the variable goes out of scope.
Fixes: efeeaefe9be5 ("drm: Add support for the LogiCVC display controller")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>
Link: https://patch.msgid.link/20260130-logicvc_drm-v1-1-04366463750c@gmail.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
