diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-04-05 19:41:22 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-04-05 19:41:22 -0400 |
| commit | 9efe21cb82b5dbe3b0b2ae4de4eccc64ecb94e95 (patch) | |
| tree | 7ff8833745d2f268f897f6fa4a27263b4a572245 /mm/mmap.c | |
| parent | de18836e447c2dc30120c0919b8db8ddc0401cc4 (diff) | |
| parent | 0221c81b1b8eb0cbb6b30a0ced52ead32d2b4e4c (diff) | |
Merge branch 'linus' into irq/threaded
Conflicts:
include/linux/irq.h
kernel/irq/handle.c
Diffstat (limited to 'mm/mmap.c')
| -rw-r--r-- | mm/mmap.c | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -20,6 +20,7 @@ | |||
| 20 | #include <linux/fs.h> | 20 | #include <linux/fs.h> |
| 21 | #include <linux/personality.h> | 21 | #include <linux/personality.h> |
| 22 | #include <linux/security.h> | 22 | #include <linux/security.h> |
| 23 | #include <linux/ima.h> | ||
| 23 | #include <linux/hugetlb.h> | 24 | #include <linux/hugetlb.h> |
| 24 | #include <linux/profile.h> | 25 | #include <linux/profile.h> |
| 25 | #include <linux/module.h> | 26 | #include <linux/module.h> |
| @@ -1049,6 +1050,9 @@ unsigned long do_mmap_pgoff(struct file *file, unsigned long addr, | |||
| 1049 | error = security_file_mmap(file, reqprot, prot, flags, addr, 0); | 1050 | error = security_file_mmap(file, reqprot, prot, flags, addr, 0); |
| 1050 | if (error) | 1051 | if (error) |
| 1051 | return error; | 1052 | return error; |
| 1053 | error = ima_file_mmap(file, prot); | ||
| 1054 | if (error) | ||
| 1055 | return error; | ||
| 1052 | 1056 | ||
| 1053 | return mmap_region(file, addr, len, flags, vm_flags, pgoff); | 1057 | return mmap_region(file, addr, len, flags, vm_flags, pgoff); |
| 1054 | } | 1058 | } |
| @@ -2477,7 +2481,4 @@ void mm_drop_all_locks(struct mm_struct *mm) | |||
| 2477 | */ | 2481 | */ |
| 2478 | void __init mmap_init(void) | 2482 | void __init mmap_init(void) |
| 2479 | { | 2483 | { |
| 2480 | vm_area_cachep = kmem_cache_create("vm_area_struct", | ||
| 2481 | sizeof(struct vm_area_struct), 0, | ||
| 2482 | SLAB_PANIC, NULL); | ||
| 2483 | } | 2484 | } |
