summaryrefslogtreecommitdiffstats
path: root/sys/dev/md/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/md/md.c')
-rw-r--r--sys/dev/md/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index f09140d..7640604 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -349,7 +349,7 @@ s_write(struct indir *ip, off_t offset, uintptr_t ptr)
up = lip[li]->array[idx];
KASSERT(up == (uintptr_t)cip, ("md screwed up"));
del_indir(cip);
- lip[li]->array[idx] = NULL;
+ lip[li]->array[idx] = 0;
lip[li]->used--;
cip = lip[li];
}
OpenPOWER on IntegriCloud