RE: [PATCH] drm/exynos: fix deadlock issue at mmap

2013-09-23 Thread Inki Dae
t; Cc: Inki Dae; Kyungmin Park > Subject: [PATCH] drm/exynos: fix deadlock issue at mmap > > This patch fixes the deadlock issue when another process requested > mmap system call. > > This issue can incur the deadlock if another process sharing the same > file called mmap system

[PATCH] drm/exynos: fix deadlock issue at mmap

2013-09-23 Thread Inki Dae
This patch fixes the deadlock issue when another process requested mmap system call. This issue can incur the deadlock if another process sharing the same file called mmap system call between ->f_op pointer chaning and restoring. So this patch calls down_write(&mm->mmap_sem) before do_mmap_pgoff