inode: fix overwritten refcount set
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
0007d8cea3
commit
dec9b2c715
1 changed files with 2 additions and 1 deletions
|
|
@ -72,8 +72,9 @@ inode_t *inode_create()
|
||||||
if (!ret)
|
if (!ret)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
ret->refcount = 1;
|
|
||||||
memset(ret, 0, sizeof(*ret));
|
memset(ret, 0, sizeof(*ret));
|
||||||
|
|
||||||
|
ret->refcount = 1;
|
||||||
rwlock_init(&ret->rwlock);
|
rwlock_init(&ret->rwlock);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue