diff options
author | YoungJun Cho <yj44.cho@samsung.com> | 2013-02-07 08:17:54 +0100 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2013-02-21 07:00:26 +0100 |
commit | 5af9f116e6a0e1de675da979a19f95a74ce2aa2e (patch) | |
tree | 987b13104c42dcb337a7f9654fbc8b6edac9e99e /mm/memory.c | |
parent | drm/exynos: Add missing braces around sizeof (diff) | |
download | linux-5af9f116e6a0e1de675da979a19f95a74ce2aa2e.tar.xz linux-5af9f116e6a0e1de675da979a19f95a74ce2aa2e.zip |
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 <yj44.cho@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions