git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net-sysfs: remove possible sleep from an RCU read-side critical section
[sfrench/cifs-2.6.git]
/
net
/
core
/
net-sysfs.c
diff --git
a/net/core/net-sysfs.c
b/net/core/net-sysfs.c
index 562a42fcd437e189b90ad6427897a05c208da0e6..f6197774048b62460eebe9f34b4c01c8c7e2722d 100644
(file)
--- a/
net/core/net-sysfs.c
+++ b/
net/core/net-sysfs.c
@@
-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;