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.

Details

Provenance
asomersAuthored on Feb 11 2023, 11:43 PM
Reviewer
emaste
Differential Revision
D38526: fusefs: fix some resource leaks
Parents
rGf3f350c5c8e4: cpuset: Add compat shim to the sched_affinity functions
Branches
Unknown
Tags
Unknown