diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 99c11294623f90ba3d6ff4cd9d7d890e5e633eea..35ef42fa0cf3885a7f58a3d6a3623eeb0abf8b21 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -956,8 +956,9 @@ static ssize_t store_xps_map(struct netdev_queue *queue, if (map_len >= alloc_len) { alloc_len = alloc_len ? 2 * alloc_len : XPS_MIN_MAP_ALLOC; - new_map = kzalloc(XPS_MAP_SIZE(alloc_len), - GFP_KERNEL); + new_map = kzalloc_node(XPS_MAP_SIZE(alloc_len), + GFP_KERNEL, + cpu_to_node(cpu)); if (!new_map) goto error; new_map->alloc_len = alloc_len;