mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
firewire: Free pending transactions on cdev release.
Signed-off-by: Kristian Høgsberg <krh@redhat.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
parent
693b902176
commit
7e35f7f318
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user