fs/inode: correct the return value
correct the return value of fs_getfilep() since the semaphore take may probably fail if the thread canceled Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
9061c997fc
commit
58bd0468ab
@ -369,7 +369,7 @@ int fs_getfilep(int fd, FAR struct file **filep)
|
|||||||
_files_semgive(list);
|
_files_semgive(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
return OK;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user