MFV r282630: 5809 Blowaway full receive in v1 pool causes kernel panic

MFC after:	5 days
This commit is contained in:
avg 2015-05-08 14:03:14 +00:00
parent cfa86d773f
commit b15170de41

View File

@ -1142,7 +1142,8 @@ dmu_recv_begin_sync(void *arg, dmu_tx_t *tx)
}
dsobj = dsl_dataset_create_sync(ds->ds_dir, recv_clone_name,
snap, crflags, drba->drba_cred, tx);
dsl_dataset_rele(snap, FTAG);
if (drba->drba_snapobj != 0)
dsl_dataset_rele(snap, FTAG);
dsl_dataset_rele(ds, FTAG);
} else {
dsl_dir_t *dd;