fusefs: fix a memory leak regarding FUSE_INTERRUPT
We were leaking the fuse ticket if the original operation completed before the daemon received the INTERRUPT operation. Fixing this was easier than I expected. Sponsored by: The FreeBSD Foundation
This commit is contained in:
@@ -473,6 +473,7 @@ fuse_device_write(struct cdev *dev, struct uio *uio, int ioflag)
|
||||
x_tick) {
|
||||
if (itick->tk_unique == tick->irq_unique) {
|
||||
fuse_aw_remove(itick);
|
||||
fuse_ticket_drop(itick);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user