From f40b29ce2a815bcc0787acf6f520a2b74258b785 Mon Sep 17 00:00:00 2001 From: Paul Dagnelie Date: Sun, 26 Apr 2015 15:26:13 -0700 Subject: [PATCH] 5809 Blowaway full receive in v1 pool causes kernel panic Reviewed by: Matthew Ahrens Reviewed by: Alex Reece Reviewed by: Will Andrews Approved by: Gordon Ross --- usr/src/uts/common/fs/zfs/dmu_send.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/src/uts/common/fs/zfs/dmu_send.c b/usr/src/uts/common/fs/zfs/dmu_send.c index c4575f8f6d..e4abdc3254 100644 --- a/usr/src/uts/common/fs/zfs/dmu_send.c +++ b/usr/src/uts/common/fs/zfs/dmu_send.c @@ -1184,7 +1184,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; -- 2.11.4.GIT