]> www.infradead.org Git - nvme.git/commitdiff
Revert "wifi: wilc1000: set atomic flag on kmemdup in srcu critical section"
authorAlexis Lothoré <alexis.lothore@bootlin.com>
Tue, 28 May 2024 14:20:29 +0000 (16:20 +0200)
committerKalle Valo <kvalo@kernel.org>
Sat, 1 Jun 2024 09:59:30 +0000 (12:59 +0300)
This reverts commit 35aee01ff43d7eb6c2caa0b94e7cc6c45baeeab7

Commit 35aee01ff43d ("wifi: wilc1000: set atomic flag on kmemdup in srcu
critical section") was preparatory to the SRCU to RCU conversion done by
commit f236464f1db7 ("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
drivers/net/wireless/microchip/wilc1000/hif.c

index 3925ca653e807d51d12031751c4f6d65177a06f9..f1085ccb7eedc025aba6a6cf45ecd1bc4edef66c 100644 (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.mgmt = kmemdup(&buffer[9],
                                          msg->body.net_info.frame_len,
-                                         GFP_ATOMIC);
+                                         GFP_KERNEL);
        if (!msg->body.net_info.mgmt) {
                kfree(msg);
                goto out;