bug fix
This commit is contained in:
parent
a11897414d
commit
5da4c28249
1 changed files with 2 additions and 2 deletions
4
fs/fs.c
4
fs/fs.c
|
@ -97,9 +97,9 @@ int open_fs(fildes_t* file, const char* name)
|
|||
spinlock_lock(&dir_node->lock);
|
||||
file->node = dir_node;
|
||||
// Has the dir_node got an open callback?
|
||||
if (file_node->open != 0)
|
||||
if (dir_node->open != 0)
|
||||
ret = file->node->open(file, fname);
|
||||
spinlock_unlock(&file_node->lock);
|
||||
spinlock_unlock(&dir_node->lock);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Reference in a new issue