drm/msm: fix BUG_ON() in error cleanup path
authorRob Clark <robdclark@gmail.com>
Tue, 1 Jul 2014 18:49:25 +0000 (14:49 -0400)
committerRob Clark <robdclark@gmail.com>
Mon, 4 Aug 2014 15:55:29 +0000 (11:55 -0400)
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c

index 4a08655..a9579ce 100644 (file)
@@ -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);
 }