X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=module%2Fzfs%2Fddt.c;fp=module%2Fzfs%2Fddt.c;h=2d8763a54954f9d96f27cacb9a63b7a919945d3b;hb=5dc6af0eec29b119b731c793037fd77214fc9438;hp=ef868619ab6310d1d97c1196a82daaa95d75dbd9;hpb=30b92c1de68ced4bee235f879791ee316314a197;p=zfs.git diff --git a/module/zfs/ddt.c b/module/zfs/ddt.c index ef86861..2d8763a 100644 --- a/module/zfs/ddt.c +++ b/module/zfs/ddt.c @@ -323,8 +323,10 @@ ddt_phys_addref(ddt_phys_t *ddp) void ddt_phys_decref(ddt_phys_t *ddp) { - ASSERT((int64_t)ddp->ddp_refcnt > 0); - ddp->ddp_refcnt--; + if (ddp) { + ASSERT((int64_t)ddp->ddp_refcnt > 0); + ddp->ddp_refcnt--; + } } void