mirror of https://gitee.com/openkylin/linux.git
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…
Reference in New Issue