fm_fmri_hc_create() must call va_end() before returning

clang-tidy caught this.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14044
This commit is contained in:
Richard Yao 2022-10-14 22:46:43 -04:00 committed by Tony Hutter
parent 5eaad8bdb5
commit a5f17a94d3
1 changed files with 1 additions and 0 deletions

View File

@ -953,6 +953,7 @@ fm_fmri_hc_create(nvlist_t *fmri, int version, const nvlist_t *auth,
} }
atomic_inc_64( atomic_inc_64(
&erpt_kstat_data.fmri_set_failed.value.ui64); &erpt_kstat_data.fmri_set_failed.value.ui64);
va_end(ap);
return; return;
} }
} }