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:
Stefan Richter 2009-03-10 21:01:08 +01:00
parent de487da8ca
commit 207fbefb18
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}