Skip to content

Commit 2f419f0

Browse files
ryaorobn
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) (cherry picked from commit 07d815f)
1 parent 9d8fd84 commit 2f419f0

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
@@ -756,7 +756,7 @@ dmu_objset_hold_flags(const char *name, boolean_t decrypt, const void *tag,
756756

757757
err = dmu_objset_from_ds(ds, osp);
758758
if (err != 0) {
759-
dsl_dataset_rele(ds, tag);
759+
dsl_dataset_rele_flags(ds, flags, tag);
760760
dsl_pool_rele(dp, tag);
761761
}
762762

0 commit comments

Comments
 (0)