aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cpuset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 8b35fbd8292f..a220b13cbfaf 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -1967,8 +1967,8 @@ int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl)
1967{ 1967{
1968 int i; 1968 int i;
1969 1969
1970 for (i = 0; zl->zones[i]; i++) { 1970 for (i = 0; zl->_zonerefs[i].zone; i++) {
1971 int nid = zone_to_nid(zl->zones[i]); 1971 int nid = zonelist_node_idx(&zl->_zonerefs[i]);
1972 1972
1973 if (node_isset(nid, current->mems_allowed)) 1973 if (node_isset(nid, current->mems_allowed))
1974 return 1; 1974 return 1;