From: Stefan Richter Date: Tue, 16 Jun 2009 17:15:25 +0000 (+0200) Subject: firewire: core: fix iso context shutdown on card removal X-Git-Tag: v2.6.31-rc1~46^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d645f4dad056a98089df904294f66b96d04e91b6;p=pandora-kernel.git firewire: core: fix iso context shutdown on card removal If isochronous contexts existed when firewire-ohci was unloaded, the core iso shutdown functions crashed with NULL dereferences, and buffers etc. weren't released. How the fix works: We first copy the card driver's iso shutdown hooks into the dummy driver, then fw_destroy_nodes notifies upper layers of devices going away, these should shut down (including their iso contexts), wait_for_completion(&card->done) will be triggered after upper layers gave up all fw_device references, after which the card driver's shutdown proceeds. Signed-off-by: Stefan Richter --- Reading git-diff-tree failed