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)
Dec 25 2023, 10:06 AM
Unknown Object (File)
Dec 23 2023, 12:08 AM
Unknown Object (File)
Sep 11 2023, 4:51 AM
Unknown Object (File)
Aug 27 2023, 6:54 AM
Unknown Object (File)
Aug 21 2023, 10:53 PM
Unknown Object (File)
Dec 30 2022, 2:32 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.