aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-06-25 22:30:14 -0400
committerIan Moffett <ian@osmora.org>2024-06-25 22:30:14 -0400
commite18827498a9bf64f09ae4156313b5045b6f409a9 (patch)
tree6b0f02c5c704a5fcbc74e9f6de257c0f047532fa /sys/fs
parentf7b8174f77f32add199b289533e2955d450dc792 (diff)
kernel: initramfs: Fix dangling pointer
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/initramfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/initramfs.c b/sys/fs/initramfs.c
index 4c47da8..57b6456 100644
--- a/sys/fs/initramfs.c
+++ b/sys/fs/initramfs.c
@@ -227,6 +227,7 @@ initramfs_reclaim(struct vnode *vp)
dynfree(vp->data);
}
+ vp->data = NULL;
return 0;
}