hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/x86/um/vdso/vma.c
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2011 Richard Weinberger <richrd@nod.at>
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 */
85
96 #include <linux/slab.h>
....@@ -61,7 +58,7 @@
6158 if (!vdso_enabled)
6259 return 0;
6360
64
- if (down_write_killable(&mm->mmap_sem))
61
+ if (mmap_write_lock_killable(mm))
6562 return -EINTR;
6663
6764 err = install_special_mapping(mm, um_vdso_addr, PAGE_SIZE,
....@@ -69,7 +66,7 @@
6966 VM_MAYREAD|VM_MAYWRITE|VM_MAYEXEC,
7067 vdsop);
7168
72
- up_write(&mm->mmap_sem);
69
+ mmap_write_unlock(mm);
7370
7471 return err;
7572 }