diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2012-07-21 23:22:35 +0200 | 
|---|---|---|
| committer | Arnd Bergmann <arnd@arndb.de> | 2012-07-21 23:22:35 +0200 | 
| commit | 2d05bf6ef7391ac3642ab62bc3a649fdb32731fe (patch) | |
| tree | a8671f0eafa885b4f3ad05204e3ed642b6acab59 /kernel/sys.c | |
| parent | 9c63cd5a955ce8a3de1776a9e4b6b89c69b2a09e (diff) | |
| parent | 8c0383b8f6a8012b107cd62eaa5a556586d8ea56 (diff) | |
| download | olio-linux-3.10-2d05bf6ef7391ac3642ab62bc3a649fdb32731fe.tar.xz olio-linux-3.10-2d05bf6ef7391ac3642ab62bc3a649fdb32731fe.zip  | |
Merge branch 'samsung/defconfig' into next/defconfig
From Kukjin Kim <kgene.kim@samsung.com>:
It is including new exynos_defconfig for DT configuration of exynos4
and exynos5 together.  The old exynos4_defconfig will be used for non-DT
for a while and we will try to move on using exynos_defconfig for only DT.
* samsung/defconfig:
  ARM: exynos_defconfig: enable more platforms in defconfig
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'kernel/sys.c')
| -rw-r--r-- | kernel/sys.c | 16 | 
1 files changed, 10 insertions, 6 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index e0c8ffc50d7..2d39a84cd85 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -1788,7 +1788,6 @@ SYSCALL_DEFINE1(umask, int, mask)  #ifdef CONFIG_CHECKPOINT_RESTORE  static int prctl_set_mm_exe_file(struct mm_struct *mm, unsigned int fd)  { -	struct vm_area_struct *vma;  	struct file *exe_file;  	struct dentry *dentry;  	int err; @@ -1816,13 +1815,17 @@ static int prctl_set_mm_exe_file(struct mm_struct *mm, unsigned int fd)  	down_write(&mm->mmap_sem);  	/* -	 * Forbid mm->exe_file change if there are mapped other files. +	 * Forbid mm->exe_file change if old file still mapped.  	 */  	err = -EBUSY; -	for (vma = mm->mmap; vma; vma = vma->vm_next) { -		if (vma->vm_file && !path_equal(&vma->vm_file->f_path, -						&exe_file->f_path)) -			goto exit_unlock; +	if (mm->exe_file) { +		struct vm_area_struct *vma; + +		for (vma = mm->mmap; vma; vma = vma->vm_next) +			if (vma->vm_file && +			    path_equal(&vma->vm_file->f_path, +				       &mm->exe_file->f_path)) +				goto exit_unlock;  	}  	/* @@ -1835,6 +1838,7 @@ static int prctl_set_mm_exe_file(struct mm_struct *mm, unsigned int fd)  	if (test_and_set_bit(MMF_EXE_FILE_CHANGED, &mm->flags))  		goto exit_unlock; +	err = 0;  	set_mm_exe_file(mm, exe_file);  exit_unlock:  	up_write(&mm->mmap_sem);  |