diff options
| author | Antoine Tenart <[email protected]> | 2021-03-22 15:43:29 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-03-22 20:28:13 +0000 |
| commit | 7f08ec6e04269ce53b664761c9108b44ed2f54ab (patch) | |
| tree | 03bbb4e258ee7272db0ca7885503207a03c0a04f /net/lapb/lapb_in.c | |
| parent | net: stmmac: platform: fix build error with !CONFIG_PM_SLEEP (diff) | |
| download | kernel-7f08ec6e04269ce53b664761c9108b44ed2f54ab.tar.gz kernel-7f08ec6e04269ce53b664761c9108b44ed2f54ab.zip | |
net-sysfs: remove possible sleep from an RCU read-side critical section
xps_queue_show is mostly made of an RCU read-side critical section and
calls bitmap_zalloc with GFP_KERNEL in the middle of it. That is not
allowed as this call may sleep and such behaviours aren't allowed in RCU
read-side critical sections. Fix this by using GFP_NOWAIT instead.
Fixes: 5478fcd0f483 ("net: embed nr_ids in the xps maps")
Reported-by: kernel test robot <[email protected]>
Suggested-by: Matthew Wilcox <[email protected]>
Signed-off-by: Antoine Tenart <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions
