diff options
| author | Bernard Xiong <[email protected]> | 2013-06-03 06:44:35 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2013-06-03 06:44:35 +0800 |
| commit | d80a47168038a1759a5881315a19fdffa06c70e6 (patch) | |
| tree | 748b0b0e515066f3cfbfda2ea8d5395f427ac211 /components | |
| parent | 3c04d0b0a06f6984829d682dbef4de280a139480 (diff) | |
Fix the memheap_realloc issue
Diffstat (limited to 'components')
| -rw-r--r-- | components/dfs/filesystems/ramfs/dfs_ramfs.c | 2 | ||||
| -rw-r--r-- | components/finsh/cmd.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/components/dfs/filesystems/ramfs/dfs_ramfs.c b/components/dfs/filesystems/ramfs/dfs_ramfs.c index 64f2aec798..c6731ed89a 100644 --- a/components/dfs/filesystems/ramfs/dfs_ramfs.c +++ b/components/dfs/filesystems/ramfs/dfs_ramfs.c @@ -9,6 +9,7 @@ * Date Author Notes * 2013-04-15 Bernard the first version * 2013-05-05 Bernard remove CRC for ramfs persistence + * 2013-05-22 Bernard fix the no entry issue. */ #include <rtthread.h> @@ -217,6 +218,7 @@ int dfs_ramfs_open(struct dfs_fd *file) /* add to the root directory */ rt_list_insert_after(&(ramfs->root.list), &(dirent->list)); } + else return -DFS_STATUS_ENOENT; } /* Creates a new file. If the file is existing, it is truncated and overwritten. */ diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index 29c17da6d8..e6c576252c 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -454,7 +454,8 @@ static long _list_device(struct rt_list_node *list) "SPI Bus", "SPI Device", "SDIO Bus", - "PM Pseudo Device", + "PM Pseudo Device", + "Miscellaneous Device", "Unknown" }; |
