]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix error handling for the NV12 fb dimensions check
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 29 Oct 2018 14:00:31 +0000 (16:00 +0200)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Tue, 6 Nov 2018 15:17:37 +0000 (17:17 +0200)
commitb0b3c9d83eae6c943a8b864de3bcaf1cdc9efa19
tree599b3671a62213cb6c3d90407a351678789a8654
parent488c49183a355114b3b3b385b9390adff7f12d57
drm/i915: Fix error handling for the NV12 fb dimensions check

Let's not leak obj->framebuffer_references when we decide that
the framebuffer domensions are not suitable for NV12.

Cc: stable@vger.kernel.org
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Vidya Srinivas <vidya.srinivas@intel.com>
Fixes: 332b9634ae12 ("drm/i915: Add NV12 support to intel_framebuffer_init")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181029140031.11765-1-ville.syrjala@linux.intel.com
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
(cherry picked from commit 3b90946fcb6f13b65888c380461793a9dea9d1f4)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/intel_display.c