Page MenuHomeFreeBSD

mtree: Fix duplicated entries handling in spec()
Needs ReviewPublic

Authored by khng on Mar 27 2024, 6:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 16, 12:29 PM
Unknown Object (File)
Fri, Apr 26, 4:32 AM
Unknown Object (File)
Mar 31 2024, 8:11 PM
Unknown Object (File)
Mar 28 2024, 6:19 PM
Unknown Object (File)
Mar 28 2024, 2:06 AM
Subscribers

Details

Reviewers
sjg
imp
Summary

Before this change, in case when duplicated entries were present, the
code reused the freed NODE structure after the centry NODE structure was
freed in addchild(). To fix this, addchild() now returns either the input
argument or the pointer to the existing NODE structure.

Sponsored by: Juniper Networks, Inc.

Diff Detail

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