From 711b35dc24a8165929a9402ff8406248b65467bc Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Fri, 14 Oct 2022 22:46:43 -0400 Subject: [PATCH] fm_fmri_hc_create() must call va_end() before returning clang-tidy caught this. Reviewed-by: Brian Behlendorf Signed-off-by: Richard Yao Closes #14044 --- module/zfs/fm.c | 1 + 1 file changed, 1 insertion(+) 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; } }