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)
Tue, Jun 25, 10:57 PM
Unknown Object (File)
Tue, Jun 25, 6:30 AM
Unknown Object (File)
Sun, Jun 16, 11:13 AM
Unknown Object (File)
Jun 2 2024, 6:32 PM
Unknown Object (File)
May 4 2024, 5:39 PM
Unknown Object (File)
May 3 2024, 7:43 PM
Unknown Object (File)
May 2 2024, 6:39 PM
Unknown Object (File)
May 2 2024, 6:39 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