From: Rob Clark Date: Tue, 1 Jul 2014 18:49:25 +0000 (-0400) Subject: drm/msm: fix BUG_ON() in error cleanup path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=036c17082adae0014c53dc2ff9e813abf13bc3b8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/msm: fix BUG_ON() in error cleanup path Signed-off-by: Rob Clark --- diff --git a/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c b/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c index 4a08655b2bfc..a9579ce2ffb9 100644 --- a/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c +++ b/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c @@ -147,7 +147,7 @@ static void mdp4_destroy(struct msm_kms *kms) if (mdp4_kms->blank_cursor_iova) msm_gem_put_iova(mdp4_kms->blank_cursor_bo, mdp4_kms->id); if (mdp4_kms->blank_cursor_bo) - drm_gem_object_unreference(mdp4_kms->blank_cursor_bo); + drm_gem_object_unreference_unlocked(mdp4_kms->blank_cursor_bo); kfree(mdp4_kms); }