diff options
| author | Alexis Lothoré <[email protected]> | 2024-04-10 07:10:33 +0000 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2024-04-16 15:30:57 +0000 |
| commit | 35aee01ff43d7eb6c2caa0b94e7cc6c45baeeab7 (patch) | |
| tree | 757c02772fefcd8adfe7707271b796318e188730 | |
| parent | wifi: brcmfmac: Fix spelling mistake "ivalid" -> "invalid" (diff) | |
| download | kernel-35aee01ff43d7eb6c2caa0b94e7cc6c45baeeab7.tar.gz kernel-35aee01ff43d7eb6c2caa0b94e7cc6c45baeeab7.zip | |
wifi: wilc1000: set atomic flag on kmemdup in srcu critical section
In order to prepare wilc1000 driver switch from SRCU to RCU, make sure that
allocators are provided with the GFP_ATOMIC flag when called in a critical
read section.
Signed-off-by: Alexis Lothoré <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://msgid.link/[email protected]
| -rw-r--r-- | drivers/net/wireless/microchip/wilc1000/hif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/microchip/wilc1000/hif.c b/drivers/net/wireless/microchip/wilc1000/hif.c index f1085ccb7eed..3925ca653e80 100644 --- a/drivers/net/wireless/microchip/wilc1000/hif.c +++ b/drivers/net/wireless/microchip/wilc1000/hif.c @@ -1594,7 +1594,7 @@ void wilc_network_info_received(struct wilc *wilc, u8 *buffer, u32 length) msg->body.net_info.rssi = buffer[8]; msg->body.net_info.mgmt = kmemdup(&buffer[9], msg->body.net_info.frame_len, - GFP_KERNEL); + GFP_ATOMIC); if (!msg->body.net_info.mgmt) { kfree(msg); goto out; |
