HomeFreeBSD

There are three places where we return from a function which entered an

Description

There are three places where we return from a function which entered an
epoch section without exiting that epoch section. This is bad for two
reasons: the epoch section won't exit, and we will leave the epoch tracker
from the stack on the epoch list.

Fix the epoch leak by making sure we exit epoch sections before returning.

Reviewed by: ae, gallatin, mmacy
Approved by: re (gjb, kib)
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D17450

Details

Provenance
jtlAuthored on
Reviewer
ae
Differential Revision
D17450: Fix three epoch leaks
Parents
rS339250: MFH (r314778): use reallocarray(3) for extra bounds checks
Branches
Unknown
Tags
Unknown