ramfs: increment missing inode refcount
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
3b47b08a16
commit
5da009c1a2
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue