]> Git Repo - linux.git/commitdiff
wifi: wilc1000: set atomic flag on kmemdup in srcu critical section
authorAlexis LothorĂ© <[email protected]>
Wed, 10 Apr 2024 07:10:33 +0000 (09:10 +0200)
committerKalle Valo <[email protected]>
Tue, 16 Apr 2024 15:30:57 +0000 (18:30 +0300)
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]
drivers/net/wireless/microchip/wilc1000/hif.c

index f1085ccb7eedc025aba6a6cf45ecd1bc4edef66c..3925ca653e807d51d12031751c4f6d65177a06f9 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_KERNEL);
+                                         GFP_ATOMIC);
        if (!msg->body.net_info.mgmt) {
                kfree(msg);
                goto out;
This page took 0.061273 seconds and 4 git commands to generate.