HomeFreeBSD

timerfd: fix up a memory leak and missing locking

Description

timerfd: fix up a memory leak and missing locking

timerfd01 from ltp passes (and some other don't), but none of the tests
crash the kernel.

This is a bare minimum patch to fix up the immediate regression.

Reported by: yasu

(cherry picked from commit 02f534b57f84d6f4f97c337b05b383c8b3aaf18c)

Approved by: re (cperciva@)

Details

Provenance
mjgAuthored on Aug 25 2023, 2:21 PM
impCommitted on Sep 17 2023, 2:34 PM
Parents
rGc3376a666e46: shmfd: hide direct rangelock(9) use under a wrapper
Branches
Unknown
Tags
Unknown