Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1474b86e authored by Emil Velikov's avatar Emil Velikov Committed by Alistair Delva
Browse files

UPSTREAM: drm: plug memory leak on drm_setup() failure



Currently we fail to free and detach the drm_file when drm_setup() fails.
Use the drm_close_helper to do address that.

Signed-off-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190114084410.15266-2-emil.l.velikov@gmail.com


(cherry picked from commit 4acc5be3cd89cc4132d8456144ee066905a58e41)
Bug: 152417756
Signed-off-by: default avatarAlistair Delva <adelva@google.com>
Change-Id: Ie9af860c8fae31812b7276f779e0bd9951a944b4
parent 89e8a2f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment