diff options
Diffstat (limited to 'ipc/shm.c')
-rw-r--r-- | ipc/shm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -268,7 +268,9 @@ static int shm_mmap(struct file * file, struct vm_area_struct * vma) | |||
268 | if (ret != 0) | 268 | if (ret != 0) |
269 | return ret; | 269 | return ret; |
270 | sfd->vm_ops = vma->vm_ops; | 270 | sfd->vm_ops = vma->vm_ops; |
271 | #ifdef CONFIG_MMU | ||
271 | BUG_ON(!sfd->vm_ops->fault); | 272 | BUG_ON(!sfd->vm_ops->fault); |
273 | #endif | ||
272 | vma->vm_ops = &shm_vm_ops; | 274 | vma->vm_ops = &shm_vm_ops; |
273 | shm_open(vma); | 275 | shm_open(vma); |
274 | 276 | ||