mirror-linux/drivers/gpu/drm/xe/display
Maarten Lankhorst 652ead9b74 drm/xe: Fix bo leak in intel_fb_bo_framebuffer_init
Add a unreference bo in the error path, to prevent leaking a bo ref.

Return 0 on success to clarify the success path.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fixes: 44e694958b ("drm/xe/display: Implement display support")
Cc: <stable@vger.kernel.org> # v6.8+
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240404090302.68422-1-maarten.lankhorst@linux.intel.com
(cherry picked from commit a2f3d731be)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
2024-04-17 08:03:06 -05:00
..
ext drm/xe/display: Fix dummy __i915_inject_probe_error() 2023-12-21 11:46:17 -05:00
intel_fb_bo.c drm/xe: Fix bo leak in intel_fb_bo_framebuffer_init 2024-04-17 08:03:06 -05:00
intel_fb_bo.h
intel_fbdev_fb.c
intel_fbdev_fb.h
xe_display.c drm/xe/display: Fix double mutex initialization 2024-04-11 08:41:53 -05:00
xe_display.h drm/xe: move xe_display.[ch] under display/ 2024-01-31 14:58:40 +02:00
xe_display_misc.c drm/xe/display: Create a dummy version for vga decode 2023-12-21 11:44:32 -05:00
xe_display_rps.c
xe_dsb_buffer.c drm/xe/dsb: DSB implementation for xe 2023-12-21 11:45:10 -05:00
xe_fb_pin.c drm/xe/display: Add writing of remapped dpt 2023-12-21 11:44:32 -05:00
xe_hdcp_gsc.c drm/xe/hdcp: Define intel_hdcp_gsc_check_status in Xe 2023-12-21 11:44:32 -05:00
xe_plane_initial.c drm/i915: Try to relocate the BIOS fb to the start of ggtt 2024-02-07 02:01:49 +02:00