diff options
| author | Andy Yan <andy.yan@rock-chips.com> | 2025-05-09 11:15:59 +0800 |
|---|---|---|
| committer | Heiko Stuebner <heiko@sntech.de> | 2025-05-19 22:29:16 +0200 |
| commit | 099593a28138b48feea5be8ce700e5bc4565e31d (patch) | |
| tree | 13179605c6f75c4d6cbcac686eb3846a0d44d5ff /tools/perf/scripts/python | |
| parent | 6f446bbe412ab3d75651d1cc52e31aaf801dbea8 (diff) | |
| download | linux-099593a28138b48feea5be8ce700e5bc4565e31d.tar.gz linux-099593a28138b48feea5be8ce700e5bc4565e31d.zip | |
drm/rockchip: cleanup fb when drm_gem_fb_afbc_init failed
In the function drm_gem_fb_init_with_funcs, the framebuffer (fb)
and its corresponding object ID have already been registered.
So we need to cleanup the drm framebuffer if the subsequent
execution of drm_gem_fb_afbc_init fails.
Directly call drm_framebuffer_put to ensure that all fb related
resources are cleanup.
Fixes: 7707f7227f09 ("drm/rockchip: Add support for afbc")
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20250509031607.2542187-1-andyshrk@163.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
