Page MenuHomeFreeBSD

Fix the nvpair leak in vdev_geom_read_config().
ClosedPublic

Authored by markj on Sep 17 2018, 3:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 18, 8:36 PM
Unknown Object (File)
Sat, Nov 16, 10:47 AM
Unknown Object (File)
Oct 10 2024, 12:09 AM
Unknown Object (File)
Oct 10 2024, 12:09 AM
Unknown Object (File)
Oct 10 2024, 12:09 AM
Unknown Object (File)
Oct 9 2024, 11:37 PM
Unknown Object (File)
Sep 17 2024, 3:21 PM
Unknown Object (File)
Sep 9 2024, 2:47 AM

Details

Summary

Also change the behaviour slightly: instead of freeing "config" if the
last nvlist doesn't pass the tests, return the last config that did pass
those tests. This matches the comment at the beginning of the function.

Test Plan

See PR 230704.

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 19623
Build 19198: arc lint + arc unit

Event Timeline

markj added reviewers: allanjude, delphij, asomers, avg.

Oops, looks like this one's my fault. Thanks for fixing it, Mark!

This revision is now accepted and ready to land.Sep 17 2018, 3:55 PM
This revision was automatically updated to reflect the committed changes.