diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/mempolicy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 81a127643aea..4a57f135b76e 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c | |||
@@ -1597,7 +1597,7 @@ unsigned slab_node(struct mempolicy *policy) | |||
1597 | (void)first_zones_zonelist(zonelist, highest_zoneidx, | 1597 | (void)first_zones_zonelist(zonelist, highest_zoneidx, |
1598 | &policy->v.nodes, | 1598 | &policy->v.nodes, |
1599 | &zone); | 1599 | &zone); |
1600 | return zone->node; | 1600 | return zone ? zone->node : numa_node_id(); |
1601 | } | 1601 | } |
1602 | 1602 | ||
1603 | default: | 1603 | default: |