Page MenuHomeFreeBSD

sysctl: Make sysctl_ctx_free() a bit safer
ClosedPublic

Authored by markj on May 1 2024, 12:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 20 2025, 5:40 PM
Unknown Object (File)
Nov 9 2025, 1:36 PM
Unknown Object (File)
Oct 29 2025, 9:16 AM
Unknown Object (File)
Oct 29 2025, 9:11 AM
Unknown Object (File)
Oct 29 2025, 8:47 AM
Unknown Object (File)
Oct 26 2025, 2:37 AM
Unknown Object (File)
Oct 22 2025, 3:22 PM
Unknown Object (File)
Oct 15 2025, 10:57 PM
Subscribers

Details

Summary

Clear the list before returning so that it's idempotent when it
succeeds.

While here, use TAILQ_FOREACH_SAFE in the loop which unregisters OIDs.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57494
Build 54382: arc lint + arc unit