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:
Alan Somers
2019-06-27 22:24:56 +00:00
parent 435ecf40bb
commit c1afff113c
+1
View File
@@ -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;
}
}