Skip to content

Commit

Permalink
firewire: cdev: fix race of ioctl_send_request with bus reset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Richter committed Mar 24, 2009
1 parent de487da commit 207fbef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/firewire/fw-cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 207fbef

Please sign in to comment.