hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/sh/kernel/vsyscall/vsyscall.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * arch/sh/kernel/vsyscall/vsyscall.c
34 *
....@@ -5,10 +6,6 @@
56 *
67 * vDSO randomization
78 * Copyright(C) 2005-2006, Red Hat, Inc., Ingo Molnar
8
- *
9
- * This file is subject to the terms and conditions of the GNU General Public
10
- * License. See the file "COPYING" in the main directory of this archive
11
- * for more details.
129 */
1310 #include <linux/mm.h>
1411 #include <linux/kernel.h>
....@@ -64,7 +61,7 @@
6461 unsigned long addr;
6562 int ret;
6663
67
- if (down_write_killable(&mm->mmap_sem))
64
+ if (mmap_write_lock_killable(mm))
6865 return -EINTR;
6966
7067 addr = get_unmapped_area(NULL, 0, PAGE_SIZE, 0, 0);
....@@ -83,7 +80,7 @@
8380 current->mm->context.vdso = (void *)addr;
8481
8582 up_fail:
86
- up_write(&mm->mmap_sem);
83
+ mmap_write_unlock(mm);
8784 return ret;
8885 }
8986