Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spa_prop_get: require caller to supply output nvlist #16505

Merged
merged 1 commit into from
Sep 6, 2024

Commits on Sep 4, 2024

  1. spa_prop_get: require caller to supply output nvlist

    All callers to spa_prop_get() and spa_prop_get_nvlist() supplied their
    own preallocated nvlist (except ztest), so we can remove the option to
    have them allocate one if none is supplied.
    
    This sidesteps a bug in spa_prop_get(), where the error var wasn't
    initialised, which could lead to the provided nvlist being freed at the
    end.
    
    Sponsored-by: Klara, Inc.
    Sponsored-by: Wasabi Technology, Inc.
    Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
    robn committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    366d6fe View commit details
    Browse the repository at this point in the history