public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fbb9b1
)
Kernel: Bug fix: _mknod() always failed
author
Will Sowerbutts
<will@sowerbutts.com>
Fri, 23 Jan 2015 23:26:41 +0000
(23:26 +0000)
committer
Will Sowerbutts
<will@sowerbutts.com>
Fri, 23 Jan 2015 23:27:06 +0000
(23:27 +0000)
Kernel/syscall_fs2.c
patch
|
blob
|
history
diff --git
a/Kernel/syscall_fs2.c
b/Kernel/syscall_fs2.c
index
872b608
..
379dd72
100644
(file)
--- a/
Kernel/syscall_fs2.c
+++ b/
Kernel/syscall_fs2.c
@@
-108,7
+108,8
@@
int16_t _mknod(void)
}
filename(name, fname);
- if ((ino = newfile(parent, fname)) != NULL)
+ ino = newfile(parent, fname);
+ if(!ino)
goto nogood3; /* parent inode is derefed in newfile. SN */
/* Initialize mode and dev */
@@
-762,4
+763,4
@@
done:
#undef file
-#undef lockop
\ No newline at end of file
+#undef lockop