Skip to content

Commit 711b35d

Browse files
ryaobehlendorf
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 #14044
1 parent aa822e4 commit 711b35d

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
@@ -955,6 +955,7 @@ fm_fmri_hc_create(nvlist_t *fmri, int version, const nvlist_t *auth,
955955
}
956956
atomic_inc_64(
957957
&erpt_kstat_data.fmri_set_failed.value.ui64);
958+
va_end(ap);
958959
return;
959960
}
960961
}

0 commit comments

Comments
 (0)