diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-14 19:22:32 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-14 19:22:32 +0000 |
commit | cc3614dfe8f67033dca8c7c1f40c3367a0d3ca06 (patch) | |
tree | 45a3ce8d73b15e96d13ef6a48171a61a1a8449b8 /nuttx/fs/romfs | |
parent | 930f9a13511a6d9bc2e44fadef42f6345d921667 (diff) | |
download | px4-firmware-cc3614dfe8f67033dca8c7c1f40c3367a0d3ca06.tar.gz px4-firmware-cc3614dfe8f67033dca8c7c1f40c3367a0d3ca06.tar.bz2 px4-firmware-cc3614dfe8f67033dca8c7c1f40c3367a0d3ca06.zip |
Finish dup logic for open files; fix bug in sigtimedwait(), would return wrong signo value if the signal was already pending
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5517 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/romfs')
-rw-r--r-- | nuttx/fs/romfs/fs_romfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/romfs/fs_romfs.c b/nuttx/fs/romfs/fs_romfs.c index de87c7fec..2814aa49d 100644 --- a/nuttx/fs/romfs/fs_romfs.c +++ b/nuttx/fs/romfs/fs_romfs.c @@ -636,7 +636,7 @@ static int romfs_dup(FAR const struct file *oldp, FAR struct file *newp) * dup'ed file. */ - newrf = (FAR struct romfs_file_s *)malloc(sizeof(struct romfs_file_s)); + newrf = (FAR struct romfs_file_s *)kmalloc(sizeof(struct romfs_file_s)); if (!newrf) { fdbg("Failed to allocate private data\n", ret); |