提交 c0fadff0 编写于 作者: G goprife@gmail.com

dfs_fd check code should not be in fd_get, which will cause open/mkdir failed.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2546 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 5bc586d3
...@@ -153,13 +153,6 @@ struct dfs_fd *fd_get(int fd) ...@@ -153,13 +153,6 @@ struct dfs_fd *fd_get(int fd)
dfs_lock(); dfs_lock();
d = &fd_table[fd]; d = &fd_table[fd];
/* check dfs_fd valid or not */
if (d->path == RT_NULL || d->fs == RT_NULL)
{
dfs_unlock();
return RT_NULL;
}
/* increase the reference count */ /* increase the reference count */
d->ref_count ++; d->ref_count ++;
dfs_unlock(); dfs_unlock();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册