Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/msm: fix bug after preclose removal

commit 53190c7194d9a8337fe419134e44c30eb63ebd08
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
AuthorDate: Mon Jan 25 22:16:49 2016 +0100
Commit: Daniel Vetter <daniel.vetter@ffwll.ch>
CommitDate: Mon Feb 8 09:55:50 2016 +0100

drm/msm: Nuke preclose hooks

Left around the unused (and null) preclose fxn ptr, and things
predictibly explode when you try to call that.

Signed-off-by: Rob Clark <robdclark@gmail.com>

Rob Clark 4016260b 568d7c76

-4
-3
drivers/gpu/drm/msm/msm_drv.c
··· 467 467 struct msm_file_private *ctx = file->driver_priv; 468 468 struct msm_kms *kms = priv->kms; 469 469 470 - if (kms) 471 - kms->funcs->preclose(kms, file); 472 - 473 470 mutex_lock(&dev->struct_mutex); 474 471 if (ctx == priv->lastctx) 475 472 priv->lastctx = NULL;
-1
drivers/gpu/drm/msm/msm_kms.h
··· 55 55 struct drm_encoder *slave_encoder, 56 56 bool is_cmd_mode); 57 57 /* cleanup: */ 58 - void (*preclose)(struct msm_kms *kms, struct drm_file *file); 59 58 void (*destroy)(struct msm_kms *kms); 60 59 }; 61 60