mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 19:34:43 +01:00
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
This commit is contained in:
1 parent
f0baaa329a
commit
83fa80a550
1 file changed
+1
-1
@@ -765,7 +765,7 @@ dmu_objset_hold_flags(const char *name, boolean_t decrypt, const void *tag,
|
||||
|
||||
err = dmu_objset_from_ds(ds, osp);
|
||||
if (err != 0) {
|
||||
dsl_dataset_rele(ds, tag);
|
||||
dsl_dataset_rele_flags(ds, flags, tag);
|
||||
dsl_pool_rele(dp, tag);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user