]> git.karo-electronics.de Git - linux-beck.git/commit
firewire: cdev: reference-count client instances
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 4 Jan 2009 15:23:29 +0000 (16:23 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 24 Mar 2009 19:56:42 +0000 (20:56 +0100)
commitfb4430367b0bbee2420132faf16c7c762a39c0bb
treed5def952cdb381863d7a2b7eb0e421d7757c7d4d
parent632321ecd99bf85c982a75f8329b4ecbb95b3a8f
firewire: cdev: reference-count client instances

The lifetime of struct client instances must be longer than the lifetime
of any client resource.

This fixes a possible race between fw_device_op_release and transaction
completions.  It also prepares for new ioctls for isochronous resource
management which will involve delayed processing of client resources.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Reviewed-by: David Moore <dcm@acm.org>
drivers/firewire/fw-cdev.c