Skip to content

Commit a5f17a9

Browse files
ryaotonyhutter
authored andcommitted
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 openzfs#14044
1 parent 5eaad8b commit a5f17a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

module/zfs/fm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,7 @@ fm_fmri_hc_create(nvlist_t *fmri, int version, const nvlist_t *auth,
953953
}
954954
atomic_inc_64(
955955
&erpt_kstat_data.fmri_set_failed.value.ui64);
956+
va_end(ap);
956957
return;
957958
}
958959
}

0 commit comments

Comments
 (0)