mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 00:00:00 +00:00
firewire: cdev: fix race of ioctl_send_request with bus reset
The bus reset handler concurrently frees client->device->node. Use device->node_id instead. This is equivalent to device->node->node_id while device->generation is current. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
parent
de487da8ca
commit
207fbefb18
@ -585,7 +585,7 @@ static int ioctl_send_request(struct client *client, void *buffer)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return init_request(client, request, client->device->node->node_id,
|
||||
return init_request(client, request, client->device->node_id,
|
||||
client->device->max_speed);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user