Skip to content

Commit

Permalink
fm_fmri_hc_create() must call va_end() before returning
Browse files Browse the repository at this point in the history
clang-tidy caught this.

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Richard Yao <[email protected]>
Closes #14044
  • Loading branch information
ryao authored and behlendorf committed Oct 18, 2022
1 parent aa822e4 commit 711b35d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions module/zfs/fm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 711b35d

Please sign in to comment.