git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add zio_ddt_free()+ddt_phys_decref() error handling
[zfs.git]
/
module
/
zfs
/
ddt.c
diff --git
a/module/zfs/ddt.c
b/module/zfs/ddt.c
index
ef86861
..
2d8763a
100644
(file)
--- 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