diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2023-06-04 09:02:55 +0200 |
---|---|---|
committer | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2023-06-06 00:54:52 +0200 |
commit | 06f45435d985d60d7d2fe2424fbb9909d177a63d (patch) | |
tree | 298750ef0f023173087196dad8f04877e6013325 /drivers/firewire/core-device.c | |
parent | firewire: ohci: release buffer for AR req/resp contexts when managed resource... (diff) | |
download | linux-06f45435d985d60d7d2fe2424fbb9909d177a63d.tar.xz linux-06f45435d985d60d7d2fe2424fbb9909d177a63d.zip |
firewire: core: obsolete usage of GFP_ATOMIC at building node tree
The flag of GFP_ATOMIC is given to the call of kmalloc when building node
tree, but the call is not atomic context. The call of
fw_core_handle_bus_reset() and fw_core_remove_card() builds the tree,
while they are done in specific workqueue or pci remove callback.
This commit obsolete the usage of GFP_ATOMIC.
Link: https://lore.kernel.org/r/20230604070255.172700-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'drivers/firewire/core-device.c')
-rw-r--r-- | drivers/firewire/core-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/core-device.c b/drivers/firewire/core-device.c index aa597cda0d88..a3104e35412c 100644 --- a/drivers/firewire/core-device.c +++ b/drivers/firewire/core-device.c @@ -1211,7 +1211,7 @@ void fw_node_event(struct fw_card *card, struct fw_node *node, int event) * without actually having a link. */ create: - device = kzalloc(sizeof(*device), GFP_ATOMIC); + device = kzalloc(sizeof(*device), GFP_KERNEL); if (device == NULL) break; |