usr/src/uts/common/fs/zfs/dmu_send.c
changeset 2885 c0259887ebbc
parent 2743 632c24f376ff
child 3087 62df4acfd5cb
--- a/usr/src/uts/common/fs/zfs/dmu_send.c	Sun Oct 08 21:26:45 2006 -0700
+++ b/usr/src/uts/common/fs/zfs/dmu_send.c	Mon Oct 09 10:56:01 2006 -0700
@@ -789,7 +789,8 @@
 		 * matches the incremental source
 		 */
 		if (force) {
-			if (ds->ds_prev->ds_phys->ds_guid !=
+			if (ds->ds_prev == NULL ||
+			    ds->ds_prev->ds_phys->ds_guid !=
 			    drrb->drr_fromguid) {
 				dsl_dataset_close(ds, DS_MODE_EXCLUSIVE, FTAG);
 				return (ENODEV);