diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-03-31 07:53:43 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-03-31 07:53:43 -0400 |
| commit | 7bee946358c3cb957d4aa648fc5ab3cad0b232d0 (patch) | |
| tree | 693061ebde2abc35ecc846e5084630d7225aaaff /mm/shmem.c | |
| parent | d820ac4c2fa881079e6b689d2098adce337558ae (diff) | |
| parent | 15f7176eb1cccec0a332541285ee752b935c1c85 (diff) | |
Merge branch 'linus' into locking-for-linus
Conflicts:
lib/Kconfig.debug
Diffstat (limited to 'mm/shmem.c')
| -rw-r--r-- | mm/shmem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 4103a239ce84..7ec78e24a30d 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
| @@ -28,6 +28,7 @@ | |||
| 28 | #include <linux/mm.h> | 28 | #include <linux/mm.h> |
| 29 | #include <linux/module.h> | 29 | #include <linux/module.h> |
| 30 | #include <linux/swap.h> | 30 | #include <linux/swap.h> |
| 31 | #include <linux/ima.h> | ||
| 31 | 32 | ||
| 32 | static struct vfsmount *shm_mnt; | 33 | static struct vfsmount *shm_mnt; |
| 33 | 34 | ||
| @@ -2665,6 +2666,7 @@ int shmem_zero_setup(struct vm_area_struct *vma) | |||
| 2665 | if (IS_ERR(file)) | 2666 | if (IS_ERR(file)) |
| 2666 | return PTR_ERR(file); | 2667 | return PTR_ERR(file); |
| 2667 | 2668 | ||
| 2669 | ima_shm_check(file); | ||
| 2668 | if (vma->vm_file) | 2670 | if (vma->vm_file) |
| 2669 | fput(vma->vm_file); | 2671 | fput(vma->vm_file); |
| 2670 | vma->vm_file = file; | 2672 | vma->vm_file = file; |
