HomeFreeBSD

fusefs: fix some resource leaks

Description

fusefs: fix some resource leaks

fusefs would leak tickets in three cases:

  • After FUSE_CREATE, if the server returned a bad inode number.
  • After a FUSE_FALLOCATE operation during VOP_ALLOCATE
  • After a FUSE_FALLOCATE operation during VOP_DEALLOCATE

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D38526

(cherry picked from commit 1bdf879b97b686a8f36fdba050b68f9e7493f363)

MFC Note: changes to VOP_DEALLOCATE are not MFCed, because that VOP does
not exist in stable/13.

Approved by: re (cperciva)

(cherry picked from commit 57756461548b813c288e190900de31e847e412f9)

Details

Provenance
asomersAuthored on Feb 11 2023, 11:43 PM
Reviewer
emaste
Differential Revision
D38526: fusefs: fix some resource leaks
Parents
rG3cfda2537654: efivar: Really look for labels for the provider with right efimedia
Branches
Unknown
Tags
Unknown