firewire: cdev: fix race of ioctl_send_request with bus reset
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 10 Mar 2009 20:01:08 +0000 (21:01 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 24 Mar 2009 19:56:50 +0000 (20:56 +0100)
commit207fbefb18de9bc6f871e4008da29879c90cb67e
treea1f24a4b814ee43ca3e8dffa290e3db84a68d5b9
parentde487da8ca5839d057e1f4b57ee3f387e180b800
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>
drivers/firewire/fw-cdev.c