提交 7e35f7f3 编写于 作者: K Kristian Høgsberg 提交者: Stefan Richter

firewire: Free pending transactions on cdev release.

Signed-off-by: NKristian Høgsberg <krh@redhat.com>
Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
上级 693b9021
......@@ -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. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册