diff --git a/fs/vfs/inode.c b/fs/vfs/inode.c index cb9cdde..9ee181d 100644 --- a/fs/vfs/inode.c +++ b/fs/vfs/inode.c @@ -72,8 +72,9 @@ inode_t *inode_create() if (!ret) return NULL; - ret->refcount = 1; memset(ret, 0, sizeof(*ret)); + + ret->refcount = 1; rwlock_init(&ret->rwlock); return ret;