Commit 207fbefb authored by Stefan Richter's avatar Stefan Richter

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: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent de487da8
...@@ -585,7 +585,7 @@ static int ioctl_send_request(struct client *client, void *buffer) ...@@ -585,7 +585,7 @@ static int ioctl_send_request(struct client *client, void *buffer)
return -EINVAL; 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); client->device->max_speed);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment