From e19015b1b4f8a4cb2dde84b559455c1558a65a2b 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 7981568b8df7..cfd1372c5b97 100644 --- a/module/zfs/fm.c +++ b/module/zfs/fm.c @@ -953,6 +953,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; } }