[PATCH 3/5] firewire: cdev: use GFP_KERNEL in address handler
From: Takashi Sakamoto
Date: Sun Sep 20 2026 - 04:37:27 EST
The callback for the address handler is now guaranteed to be invoked in
process context. In the cdev layer, GFP_ATOMIC is still used for memory
allocation in the address handler.
Use GFP_KERNEL instead.
Signed-off-by: Takashi Sakamoto <o-takashi@xxxxxxxxxxxxx>
---
drivers/firewire/core-cdev.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c
index 3dd8ea1991b0..625792b6ab71 100644
--- a/drivers/firewire/core-cdev.c
+++ b/drivers/firewire/core-cdev.c
@@ -777,8 +777,8 @@ static void handle_request(struct fw_card *card, struct fw_request *request,
if (is_fcp)
fw_request_get(request);
- r = kmalloc_obj(*r, GFP_ATOMIC);
- e = kmalloc_obj(*e, GFP_ATOMIC);
+ r = kmalloc_obj(*r);
+ e = kmalloc_obj(*e);
if (r == NULL || e == NULL)
goto failed;
@@ -789,7 +789,7 @@ static void handle_request(struct fw_card *card, struct fw_request *request,
r->length = length;
r->resource.release = release_request;
- ret = add_client_resource(handler->client, &r->resource, GFP_ATOMIC);
+ ret = add_client_resource(handler->client, &r->resource, GFP_KERNEL);
if (ret < 0)
goto failed;
--
2.53.0