aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mempolicy.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r--mm/mempolicy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index 5e7eea2dc8b4..78b18a60b9b2 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -1750,6 +1750,7 @@ static struct sp_node *sp_alloc(unsigned long start, unsigned long end,
1750 n->start = start; 1750 n->start = start;
1751 n->end = end; 1751 n->end = end;
1752 mpol_get(pol); 1752 mpol_get(pol);
1753 pol->flags |= MPOL_F_SHARED; /* for unref */
1753 n->policy = pol; 1754 n->policy = pol;
1754 return n; 1755 return n;
1755} 1756}