diff options
Diffstat (limited to 'ipc/shm.c')
-rw-r--r-- | ipc/shm.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -274,8 +274,7 @@ static struct mempolicy *shm_get_policy(struct vm_area_struct *vma, | |||
274 | else if (vma->vm_policy) { | 274 | else if (vma->vm_policy) { |
275 | pol = vma->vm_policy; | 275 | pol = vma->vm_policy; |
276 | mpol_get(pol); /* get_vma_policy() expects this */ | 276 | mpol_get(pol); /* get_vma_policy() expects this */ |
277 | } else | 277 | } |
278 | pol = current->mempolicy; | ||
279 | return pol; | 278 | return pol; |
280 | } | 279 | } |
281 | #endif | 280 | #endif |