diff options
| author | [email protected] <[email protected]> | 2012-10-20 01:59:41 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-10-20 01:59:41 +0000 |
| commit | d9b0bec989a0ef61b8e88147b618a46e763fb3b7 (patch) | |
| tree | 01eef29eb8ed7c59f9d34d85c350777e590f0e30 /components/dfs/src | |
| parent | e737514f867a3499ac6fa21493a1fc5b04e5e1b3 (diff) | |
fix bug in dfs_unmount when test unmount condition found by Rob([email protected])
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2356 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/dfs/src')
| -rw-r--r-- | components/dfs/src/dfs_fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/src/dfs_fs.c b/components/dfs/src/dfs_fs.c index 7d88fac67a..7c319722cd 100644 --- a/components/dfs/src/dfs_fs.c +++ b/components/dfs/src/dfs_fs.c @@ -361,7 +361,7 @@ int dfs_unmount(const char *specialfile) dfs_lock(); fs = dfs_filesystem_lookup(fullpath); - if (fs != RT_NULL && fs->ops->unmount != RT_NULL && fs->ops->unmount(fs) < 0) + if (fs == RT_NULL || fs->ops->unmount == RT_NULL || fs->ops->unmount(fs) < 0) { goto err1; } |
