]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - drivers/firewire/fw-device-cdev.c
firewire: Free pending transactions on cdev release.
[mirror_ubuntu-hirsute-kernel.git] / drivers / firewire / fw-device-cdev.c
index ebf0d100805e6da6563cb5799912995f51fe41fb..b1b7edb0d2adc1958d56863f90c4194336b52a8e 100644 (file)
@@ -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. */