tmpfs: misc fixes

This commit is contained in:
Matheus
2023-07-06 13:59:51 -03:00
parent e05e74e1a5
commit 4a9306191b
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ int vfs_link(vnode_t *destref, char *destpath, vnode_t *linkref, char *linkpath,
goto cleanup;
if (type == V_TYPE_REGULAR) {
vnode_t *targetnode;
vnode_t *targetnode = NULL;
err = vfs_lookup(&targetnode, destref, destpath, NULL, 0);
if (err) {
VOP_RELEASE(parent);