aboutsummaryrefslogtreecommitdiffstats
path: root/mm/nommu.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2009-01-14 14:14:15 +0100
committerHeiko Carstens <heiko.carstens@de.ibm.com>2009-01-14 14:15:23 +0100
commit6a6160a7b5c27b3c38651baef92a14fa7072b3c1 (patch)
treea4a7640bd12611c445dfc013f69ce307674d1b13 /mm/nommu.c
parent64fd1de3d821659ac0a3004fd5ee1de59e64af30 (diff)
downloadkernel_samsung_smdk4412-6a6160a7b5c27b3c38651baef92a14fa7072b3c1.tar.gz
kernel_samsung_smdk4412-6a6160a7b5c27b3c38651baef92a14fa7072b3c1.tar.bz2
kernel_samsung_smdk4412-6a6160a7b5c27b3c38651baef92a14fa7072b3c1.zip
[CVE-2009-0029] System call wrappers part 13
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'mm/nommu.c')
-rw-r--r--mm/nommu.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/mm/nommu.c b/mm/nommu.c
index ee3e7892773..8cee8c8ff0f 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -416,7 +416,7 @@ EXPORT_SYMBOL(vm_insert_page);
* to a regular file. in this case, the unmapping will need
* to invoke file system routines that need the global lock.
*/
-asmlinkage long sys_brk(unsigned long brk)
+SYSCALL_DEFINE1(brk, unsigned long, brk)
{
struct mm_struct *mm = current->mm;
@@ -1573,7 +1573,7 @@ erase_whole_vma:
}
EXPORT_SYMBOL(do_munmap);
-asmlinkage long sys_munmap(unsigned long addr, size_t len)
+SYSCALL_DEFINE2(munmap, unsigned long, addr, size_t, len)
{
int ret;
struct mm_struct *mm = current->mm;
@@ -1657,10 +1657,9 @@ unsigned long do_mremap(unsigned long addr,
}
EXPORT_SYMBOL(do_mremap);
-asmlinkage
-unsigned long sys_mremap(unsigned long addr,
- unsigned long old_len, unsigned long new_len,
- unsigned long flags, unsigned long new_addr)
+SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len,
+ unsigned long, new_len, unsigned long, flags,
+ unsigned long, new_addr)
{
unsigned long ret;