aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mempolicy.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r--mm/mempolicy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index f969da5dd8a2..c1002c68d617 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -1588,7 +1588,7 @@ unsigned slab_node(struct mempolicy *policy)
1588 (void)first_zones_zonelist(zonelist, highest_zoneidx, 1588 (void)first_zones_zonelist(zonelist, highest_zoneidx,
1589 &policy->v.nodes, 1589 &policy->v.nodes,
1590 &zone); 1590 &zone);
1591 return zone->node; 1591 return zone ? zone->node : numa_node_id();
1592 } 1592 }
1593 1593
1594 default: 1594 default: