diff options
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 19d566ccdeea..75199888a6bd 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -59,6 +59,7 @@ static struct vfsmount *shm_mnt; | |||
59 | #include <linux/highmem.h> | 59 | #include <linux/highmem.h> |
60 | #include <linux/seq_file.h> | 60 | #include <linux/seq_file.h> |
61 | #include <linux/magic.h> | 61 | #include <linux/magic.h> |
62 | #include <linux/ima.h> | ||
62 | 63 | ||
63 | #include <asm/uaccess.h> | 64 | #include <asm/uaccess.h> |
64 | #include <asm/div64.h> | 65 | #include <asm/div64.h> |
@@ -2666,6 +2667,7 @@ int shmem_zero_setup(struct vm_area_struct *vma) | |||
2666 | if (IS_ERR(file)) | 2667 | if (IS_ERR(file)) |
2667 | return PTR_ERR(file); | 2668 | return PTR_ERR(file); |
2668 | 2669 | ||
2670 | ima_shm_check(file); | ||
2669 | if (vma->vm_file) | 2671 | if (vma->vm_file) |
2670 | fput(vma->vm_file); | 2672 | fput(vma->vm_file); |
2671 | vma->vm_file = file; | 2673 | vma->vm_file = file; |