Skip to content

Commit

Permalink
Revert "wifi: wilc1000: set atomic flag on kmemdup in srcu critical s…
Browse files Browse the repository at this point in the history
…ection"

This reverts commit 35aee01

Commit 35aee01 ("wifi: wilc1000: set atomic flag on kmemdup in srcu
critical section") was preparatory to the SRCU to RCU conversion done by
commit f236464 ("wifi: wilc1000: convert list management to RCU").
This conversion brought issues and so has been reverted, so the atomic flag
is not needed anymore.

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240528-wilc_revert_srcu_to_rcu-v1-2-bce096e0798c@bootlin.com
  • Loading branch information
Alexis Lothoré authored and Kalle Valo committed Jun 1, 2024
1 parent ebfb5e8 commit 3596717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/microchip/wilc1000/hif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_ATOMIC);
GFP_KERNEL);
if (!msg->body.net_info.mgmt) {
kfree(msg);
goto out;
Expand Down

0 comments on commit 3596717

Please sign in to comment.