diff options
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/shm.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -271,10 +271,9 @@ static struct mempolicy *shm_get_policy(struct vm_area_struct *vma, | |||
271 | 271 | ||
272 | if (sfd->vm_ops->get_policy) | 272 | if (sfd->vm_ops->get_policy) |
273 | pol = sfd->vm_ops->get_policy(vma, addr); | 273 | pol = sfd->vm_ops->get_policy(vma, addr); |
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 | |
277 | } | ||
278 | return pol; | 277 | return pol; |
279 | } | 278 | } |
280 | #endif | 279 | #endif |