Commit 7e35f7f3 authored by Kristian Høgsberg's avatar Kristian Høgsberg Committed by Stefan Richter

firewire: Free pending transactions on cdev release.

Signed-off-by: default avatarKristian Høgsberg <krh@redhat.com>
Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent 693b9021
...@@ -827,8 +827,10 @@ static int fw_device_op_release(struct inode *inode, struct file *file) ...@@ -827,8 +827,10 @@ static int fw_device_op_release(struct inode *inode, struct file *file)
kfree(r); 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); fw_cancel_transaction(client->device->card, &t->transaction);
kfree(t);
}
/* FIXME: We should wait for the async tasklets to stop /* FIXME: We should wait for the async tasklets to stop
* running before freeing the memory. */ * running before freeing the memory. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment