diff options
author | 2024-03-12 12:14:22 -0500 | |
---|---|---|
committer | 2024-03-12 12:14:22 -0500 | |
commit | 3dfd8247969adeaa814a335f994eaebea36a53bd (patch) | |
tree | a623978f5b29c43fe8c31da5f593e2dff379d9a6 | |
parent | Merge branch 'pci/enumeration' (diff) | |
parent | PCI/P2PDMA: Fix a sleeping issue in a RCU read section (diff) | |
download | wireguard-linux-3dfd8247969adeaa814a335f994eaebea36a53bd.tar.xz wireguard-linux-3dfd8247969adeaa814a335f994eaebea36a53bd.zip |
Merge branch 'pci/p2pdma'
- Fix a sleeping issue in a RCU read section (Christophe JAILLET)
* pci/p2pdma:
PCI/P2PDMA: Fix a sleeping issue in a RCU read section
-rw-r--r-- | drivers/pci/p2pdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c index 0c361561b855..4f47a13cb500 100644 --- a/drivers/pci/p2pdma.c +++ b/drivers/pci/p2pdma.c @@ -661,7 +661,7 @@ done: p2pdma = rcu_dereference(provider->p2pdma); if (p2pdma) xa_store(&p2pdma->map_types, map_types_idx(client), - xa_mk_value(map_type), GFP_KERNEL); + xa_mk_value(map_type), GFP_ATOMIC); rcu_read_unlock(); return map_type; } |