From e18827498a9bf64f09ae4156313b5045b6f409a9 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 25 Jun 2024 22:30:14 -0400 Subject: kernel: initramfs: Fix dangling pointer Signed-off-by: Ian Moffett --- sys/fs/initramfs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/fs') 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; } -- cgit v1.2.3