ramfs: increment missing inode refcount

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-05 14:15:46 +02:00
commit 5da009c1a2

View file

@ -146,6 +146,7 @@ static int link(dirent_t *in, inode_t *to, const char *name, dirent_t **out)
return -ENOMEM;
}
inode_inc_ref(to);
new->inode = to;
new->fs_ptr = in->fs_ptr;