diff options
| author | Bernard Xiong <[email protected]> | 2014-10-14 23:24:02 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2014-10-14 23:24:02 +0800 |
| commit | 2fc3db65799a126c5c1abdac7f732d2386f09170 (patch) | |
| tree | 401c6dc01b37ba77e9d60fbd23ca8a2fe46a6f51 /components/dfs | |
| parent | a4bb77d09740df6838fcf5a818da3ad0975a4293 (diff) | |
| parent | e03045122053ab8bc1422e03ae723db9ac7ffa98 (diff) | |
Merge pull request #353 from grissiom/misc-fix
Misc fix
Diffstat (limited to 'components/dfs')
| -rw-r--r-- | components/dfs/src/dfs_file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c index f5619e2354..614a349494 100644 --- a/components/dfs/src/dfs_file.c +++ b/components/dfs/src/dfs_file.c @@ -335,6 +335,9 @@ int dfs_file_lseek(struct dfs_fd *fd, rt_off_t offset) if (fd == RT_NULL) return -DFS_STATUS_EINVAL; + fs = fd->fs; + if (fs == RT_NULL) + return -DFS_STATUS_EINVAL; if (fs->ops->lseek == RT_NULL) return -DFS_STATUS_ENOSYS; |
