diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2024-04-04 11:03:02 +0200 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2024-04-17 08:03:06 -0500 |
commit | 652ead9b746a63e4e79d7ad66d3edf0a8a5b0c2f (patch) | |
tree | 39afab89dc9c14a09e878ae0eb50c5e15f92a4d2 /drivers/mmc/core | |
parent | 0bbac3facb5d6cc0171c45c9873a2dc96bea9680 (diff) | |
download | linux-stable-652ead9b746a63e4e79d7ad66d3edf0a8a5b0c2f.tar.gz linux-stable-652ead9b746a63e4e79d7ad66d3edf0a8a5b0c2f.tar.bz2 linux-stable-652ead9b746a63e4e79d7ad66d3edf0a8a5b0c2f.zip |
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: 44e694958b95 ("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 a2f3d731be3893e730417ae3190760fcaffdf549)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Diffstat (limited to 'drivers/mmc/core')
0 files changed, 0 insertions, 0 deletions