From: YoungJun Cho Date: Thu, 7 Feb 2013 07:17:54 +0000 (+0900) Subject: drm/exynos: fix wrong pointer access at vm close. X-Git-Tag: v3.9-rc1~83^2~4^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5af9f116e6a0e1de675da979a19f95a74ce2aa2e;p=pandora-kernel.git drm/exynos: fix wrong pointer access at vm close. This patch fixes wrong pointer access issue to filp->f_op and filp->private_data. The exynos_drm_gem_mmap_ioctl() changes filp->f_op and filp->private_data temporarily and restore them to use original ones in exynos_drm_gem_mmap_buffer() but there was no lock between the changing and the restoring so wrong pointer access to filp->f_op and filp->private_data was induced by vm close callback. So this patch uses mutex lock properly to resolve this issue. Signed-off-by: YoungJun Cho Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- Reading git-diff-tree failed