HomeFreeBSD

dmu_objset_hold_flags() should call dsl_dataset_rele_flags() on error

Description

dmu_objset_hold_flags() should call dsl_dataset_rele_flags() on error

This was caught when doing a manual check to see if #17352 needed to be
improved to catch mismatches across stack frames of the kind that were
first found in #17340.

Reviewed-by: George Amanakis <gamanakis@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Richard Yao <richard@ryao.dev>
Closes #17353

Details

Provenance
Richard Yao <richard@ryao.dev>Authored on May 20 2025, 3:35 PM
GitHub <noreply@github.com>Committed on May 20 2025, 3:35 PM
Parents
rGf0baaa329ab2: arcstat: prevent ZeroDivisionError when L2ARC becomes empty
Branches
Unknown
Tags
Unknown