diff options
author | Ian Moffett <ian@osmora.org> | 2024-06-25 22:30:14 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-06-25 22:30:14 -0400 |
commit | e18827498a9bf64f09ae4156313b5045b6f409a9 (patch) | |
tree | 6b0f02c5c704a5fcbc74e9f6de257c0f047532fa | |
parent | f7b8174f77f32add199b289533e2955d450dc792 (diff) |
kernel: initramfs: Fix dangling pointer
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | sys/fs/initramfs.c | 1 |
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; } |