firewire: Grab dev->sem when doing the update callback.
authorKristian Høgsberg <krh@redhat.com>
Mon, 19 Mar 2007 15:37:16 +0000 (11:37 -0400)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 20 Mar 2007 22:27:19 +0000 (23:27 +0100)
commit015b066f4e5dbd301144c2de1c53329178f67a01
tree60a6d5125eb9601df50f358e518f6ac92decf0b3
parent11f494ee25dd81af90255b1d61abc6f5508db4d0
firewire: Grab dev->sem when doing the update callback.

This serializes the update callback with the probe and remove callback from
the driver core and prevents remove from being called while update is
running for the same device.

Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-device.c