mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
firewire: cdev: use GFP_KERNEL in address handler
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. Link: https://lore.kernel.org/r/20260920083659.191855-4-o-takashi@sakamocchi.jp Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
This commit is contained in:
parent
a520ce89fc
commit
0958dcb1e5
|
|
@ -785,8 +785,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;
|
||||
|
||||
|
|
@ -797,7 +797,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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user