Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7e35f7f318168f1b735abc87754108c06955f50d Commit: 7e35f7f318168f1b735abc87754108c06955f50d Parent: 693b9021767750cbac2c92e918d25ddadbab7c61 Author: Kristian Høgsberg <[EMAIL PROTECTED]> AuthorDate: Wed Mar 14 17:34:57 2007 -0400 Committer: Stefan Richter <[EMAIL PROTECTED]> CommitDate: Thu Mar 15 18:21:36 2007 +0100
firewire: Free pending transactions on cdev release. Signed-off-by: Kristian Høgsberg <[EMAIL PROTECTED]> Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> --- drivers/firewire/fw-device-cdev.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/firewire/fw-device-cdev.c b/drivers/firewire/fw-device-cdev.c index ebf0d10..b1b7edb 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. */ - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html