From: Kristian Høgsberg Date: Wed, 14 Mar 2007 21:34:57 +0000 (-0400) Subject: firewire: Free pending transactions on cdev release. X-Git-Tag: v2.6.22-rc1~111^2~47 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e35f7f318168f1b735abc87754108c06955f50d;p=linux-2.6 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 ebf0d10080..b1b7edb0d2 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. */