1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00

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é <alexis.lothore@bootlin.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240410-wilc_srcu_to_rcu-v1-1-a9ff5b10feaa@bootlin.com
This commit is contained in:
Alexis Lothoré 2024-04-10 09:10:33 +02:00 committed by Kalle Valo
parent d26a0a66f9
commit 35aee01ff4

View file

@ -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.rssi = buffer[8];
msg->body.net_info.mgmt = kmemdup(&buffer[9], msg->body.net_info.mgmt = kmemdup(&buffer[9],
msg->body.net_info.frame_len, msg->body.net_info.frame_len,
GFP_KERNEL); GFP_ATOMIC);
if (!msg->body.net_info.mgmt) { if (!msg->body.net_info.mgmt) {
kfree(msg); kfree(msg);
goto out; goto out;