Skip to content

Commit 25ad9ce

Browse files
ryaotonyhutter
authored andcommitted
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 <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Richard Yao <[email protected]> Closes #17353 (cherry picked from commit 83fa80a)
1 parent 6b70ca6 commit 25ad9ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/zfs/dmu_objset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ dmu_objset_hold_flags(const char *name, boolean_t decrypt, const void *tag,
765765

766766
err = dmu_objset_from_ds(ds, osp);
767767
if (err != 0) {
768-
dsl_dataset_rele(ds, tag);
768+
dsl_dataset_rele_flags(ds, flags, tag);
769769
dsl_pool_rele(dp, tag);
770770
}
771771

0 commit comments

Comments
 (0)