summaryrefslogtreecommitdiffstats
path: root/drivers/firewire
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-08-27 09:32:08 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2011-08-27 09:32:08 -0700
commit219f358e0ba9a98640341e030533089860af1cc6 (patch)
tree3004773886a9d65c194c8ebf43e07f53cbe79af9 /drivers/firewire
parentf5b940997397229975ea073679b03967932a541b (diff)
parent0278ccd9d53e07c4e699432b2fed9de6c56f506c (diff)
downloadlinux-219f358e0ba9a98640341e030533089860af1cc6.tar.bz2
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6
* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6: firewire: sbp2: fix panic after rmmod with slow targets
Diffstat (limited to 'drivers/firewire')
-rw-r--r--drivers/firewire/sbp2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/firewire/sbp2.c b/drivers/firewire/sbp2.c
index 41841a3e3f99..17cef864506a 100644
--- a/drivers/firewire/sbp2.c
+++ b/drivers/firewire/sbp2.c
@@ -1198,6 +1198,10 @@ static int sbp2_remove(struct device *dev)
{
struct fw_unit *unit = fw_unit(dev);
struct sbp2_target *tgt = dev_get_drvdata(&unit->device);
+ struct sbp2_logical_unit *lu;
+
+ list_for_each_entry(lu, &tgt->lu_list, link)
+ cancel_delayed_work_sync(&lu->work);
sbp2_target_put(tgt);
return 0;