aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libspl/include/sys/kstat.h
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-09-07 01:45:58 +1000
committerGitHub <[email protected]>2024-09-06 08:45:58 -0700
commitb109925820fb79db3e37670c159977f03edd950f (patch)
treed8295a824571fab6ee04397f511cceec08b28055 /lib/libspl/include/sys/kstat.h
parent17dd66dedab9f9bebc823cca3eae3405ef28c7ef (diff)
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. Reviewed-by: Jorgen Lundman <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #16505
Diffstat (limited to 'lib/libspl/include/sys/kstat.h')
0 files changed, 0 insertions, 0 deletions