summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorWeigang He <geoffreyhe2@gmail.com>2026-01-16 09:57:51 +0000
committerHelge Deller <deller@gmx.de>2026-02-14 11:09:46 +0100
commiteacf9840ae1285a1ef47eb0ce16d786e542bd4d7 (patch)
treee827a832e2d9497cf2bbaaf454b42036f6b58737 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parent88b3b9924337336a31cefbe99a22ed09401be74a (diff)
fbdev: of: display_timing: fix refcount leak in of_get_display_timings()
of_parse_phandle() returns a device_node with refcount incremented, which is stored in 'entry' and then copied to 'native_mode'. When the error paths at lines 184 or 192 jump to 'entryfail', native_mode's refcount is not decremented, causing a refcount leak. Fix this by changing the goto target from 'entryfail' to 'timingfail', which properly calls of_node_put(native_mode) before cleanup. Fixes: cc3f414cf2e4 ("video: add of helper for display timings/videomode") Cc: stable@vger.kernel.org Signed-off-by: Weigang He <geoffreyhe2@gmail.com> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions