Print this page
*** NO COMMENTS ***

@@ -2109,12 +2109,16 @@
         ASSERT(BP_GET_DEDUP(bp));
         ASSERT(zio->io_child_type == ZIO_CHILD_LOGICAL);
 
         ddt_enter(ddt);
         freedde = dde = ddt_lookup(ddt, bp, B_TRUE);
+        if (dde) {
         ddp = ddt_phys_select(dde, bp);
+                if (ddp) {
         ddt_phys_decref(ddp);
+                }
+        }
         ddt_exit(ddt);
 
         return (ZIO_PIPELINE_CONTINUE);
 }