aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2022-10-14 22:46:43 -0400
committerBrian Behlendorf <[email protected]>2022-10-18 15:34:36 -0700
commit711b35dc24a8165929a9402ff8406248b65467bc (patch)
tree19562b80bc60da4aacf6398e88f84a92196f96aa
parentaa822e4d9c0f68ff9c7d236cc7c8a88bdf375aea (diff)
fm_fmri_hc_create() must call va_end() before returning
clang-tidy caught this. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Richard Yao <[email protected]> Closes #14044
-rw-r--r--module/zfs/fm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/module/zfs/fm.c b/module/zfs/fm.c
index 32b5cf8fa..3f05d7597 100644
--- a/module/zfs/fm.c
+++ b/module/zfs/fm.c
@@ -955,6 +955,7 @@ fm_fmri_hc_create(nvlist_t *fmri, int version, const nvlist_t *auth,
}
atomic_inc_64(
&erpt_kstat_data.fmri_set_failed.value.ui64);
+ va_end(ap);
return;
}
}