Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

firewire: Free pending transactions on cdev release.

parent 693b9021
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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. */