From: Kristian Høgsberg Date: Wed, 14 Mar 2007 21:34:57 +0000 (-0400) Subject: firewire: Free pending transactions on cdev release. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7e35f7f318168f1b735abc87754108c06955f50d;p=openwrt%2Fstaging%2Fblogic.git firewire: Free pending transactions on cdev release. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter --- diff --git a/drivers/firewire/fw-device-cdev.c b/drivers/firewire/fw-device-cdev.c index ebf0d100805e..b1b7edb0d2ad 100644 --- a/drivers/firewire/fw-device-cdev.c +++ b/drivers/firewire/fw-device-cdev.c @@ -827,8 +827,10 @@ static int fw_device_op_release(struct inode *inode, struct file *file) kfree(r); } - list_for_each_entry_safe(t, next_t, &client->transaction_list, link) + list_for_each_entry_safe(t, next_t, &client->transaction_list, link) { fw_cancel_transaction(client->device->card, &t->transaction); + kfree(t); + } /* FIXME: We should wait for the async tasklets to stop * running before freeing the memory. */