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)
Sat, Nov 23, 5:52 AM
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

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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.