net-sysfs: remove possible sleep from an RCU read-side critical section
[sfrench/cifs-2.6.git] / net / core / net-sysfs.c
index 562a42fcd437e189b90ad6427897a05c208da0e6..f6197774048b62460eebe9f34b4c01c8c7e2722d 100644 (file)
@@ -1378,7 +1378,7 @@ static ssize_t xps_queue_show(struct net_device *dev, unsigned int index,
        nr_ids = dev_maps ? dev_maps->nr_ids :
                 (type == XPS_CPUS ? nr_cpu_ids : dev->num_rx_queues);
 
-       mask = bitmap_zalloc(nr_ids, GFP_KERNEL);
+       mask = bitmap_zalloc(nr_ids, GFP_NOWAIT);
        if (!mask) {
                rcu_read_unlock();
                return -ENOMEM;