Skip to content
Commit 0b05e1e0 authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

drm/i915: Don't leak framebuffer_references if drm_framebuffer_init() fails



Don't increment obj->framebuffer_references until we know we actually
managed to create the framebuffer.

Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1452777736-4909-2-git-send-email-ville.syrjala@linux.intel.com
parent 013dd9e0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment