From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Drop fb reference on load_detect_pipe failure path
Date: Fri, 8 Dec 2017 13:14:17 +0200 [thread overview]
Message-ID: <20171208111417.GL10981@intel.com> (raw)
In-Reply-To: <20171207220025.22698-1-chris@chris-wilson.co.uk>
On Thu, Dec 07, 2017 at 10:00:25PM +0000, Chris Wilson wrote:
> When intel_modeset_setup_plane_state() fails drop the local framebuffer
> reference before jumping to the error, otherwise we leak the framebuffer.
Or we could just
https://patchwork.freedesktop.org/patch/165486/
This is
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
nonetheless.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
> ---
> drivers/gpu/drm/i915/intel_display.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index 1f7e312d0d0d..1ba570614dbe 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -9940,11 +9940,10 @@ int intel_get_load_detect_pipe(struct drm_connector *connector,
> }
>
> ret = intel_modeset_setup_plane_state(state, crtc, mode, fb, 0, 0);
> + drm_framebuffer_put(fb);
> if (ret)
> goto fail;
>
> - drm_framebuffer_put(fb);
> -
> ret = drm_atomic_set_mode_for_crtc(&crtc_state->base, mode);
> if (ret)
> goto fail;
> --
> 2.15.1
--
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-12-08 11:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-07 22:00 [PATCH] drm/i915: Drop fb reference on load_detect_pipe failure path Chris Wilson
2017-12-07 22:06 ` Chris Wilson
2017-12-07 22:20 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-12-07 22:26 ` Chris Wilson
2017-12-08 0:56 ` ✗ Fi.CI.IGT: warning " Patchwork
2017-12-08 11:14 ` Ville Syrjälä [this message]
2017-12-08 11:31 ` [PATCH] " Chris Wilson
2017-12-08 11:49 ` Chris Wilson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171208111417.GL10981@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=daniel.vetter@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.