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
F166885909: D44531.id.diff
Mon, Aug 17, 12:58 PM
F166842000: D44531.id.diff
Mon, Aug 17, 12:14 AM
Unknown Object (File)
Sat, Aug 15, 5:08 PM
Unknown Object (File)
Fri, Aug 14, 7:51 AM
Unknown Object (File)
Wed, Aug 12, 6:34 AM
Unknown Object (File)
Wed, Aug 12, 12:03 AM
Unknown Object (File)
Tue, Aug 11, 10:51 PM
Unknown Object (File)
Mon, Aug 10, 9:47 PM
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