mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
Fix corruption in ZFS replication streams from encrypted datasets.
From the upstream pull request merges: #17340 b144b160b Fix 2 bugs in non-raw send with encryption Obtained from: OpenZFS Approved by: so Security: FreeBSD-EN-25:10.zfs
This commit is contained in:
parent
b2c54d0714
commit
5ee703c5d9
1 changed files with 3 additions and 3 deletions
|
|
@ -2669,8 +2669,8 @@ dmu_send_obj(const char *pool, uint64_t tosnap, uint64_t fromsnap,
|
|||
}
|
||||
|
||||
if (fromsnap != 0) {
|
||||
err = dsl_dataset_hold_obj_flags(dspp.dp, fromsnap, dsflags,
|
||||
FTAG, &fromds);
|
||||
err = dsl_dataset_hold_obj(dspp.dp, fromsnap, FTAG, &fromds);
|
||||
|
||||
if (err != 0) {
|
||||
dsl_dataset_rele_flags(dspp.to_ds, dsflags, FTAG);
|
||||
dsl_pool_rele(dspp.dp, FTAG);
|
||||
|
|
@ -2722,7 +2722,7 @@ dmu_send_obj(const char *pool, uint64_t tosnap, uint64_t fromsnap,
|
|||
kmem_free(dspp.fromredactsnaps,
|
||||
dspp.numfromredactsnaps * sizeof (uint64_t));
|
||||
|
||||
dsl_dataset_rele(dspp.to_ds, FTAG);
|
||||
dsl_dataset_rele_flags(dspp.to_ds, dsflags, FTAG);
|
||||
return (err);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue