summaryrefslogtreecommitdiff
path: root/nuttx/fs/procfs/fs_procfsproc.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-12-14 15:25:23 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-12-14 15:25:23 -0600
commitf3da17d4d462c3575bf6b9cb4fe83b1457e9af3f (patch)
treedc707a9798c44b6a35014d7bdb7821516751d620 /nuttx/fs/procfs/fs_procfsproc.c
parent2913b4ba9de088ecc0614a66146c9c15a8bb5716 (diff)
downloadpx4-nuttx-f3da17d4d462c3575bf6b9cb4fe83b1457e9af3f.tar.gz
px4-nuttx-f3da17d4d462c3575bf6b9cb4fe83b1457e9af3f.tar.bz2
px4-nuttx-f3da17d4d462c3575bf6b9cb4fe83b1457e9af3f.zip
/proc/uptime logic needs to sample timer in case multiple reads are used to read the time
Diffstat (limited to 'nuttx/fs/procfs/fs_procfsproc.c')
-rw-r--r--nuttx/fs/procfs/fs_procfsproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/procfs/fs_procfsproc.c b/nuttx/fs/procfs/fs_procfsproc.c
index 119eaf466..997c6a18d 100644
--- a/nuttx/fs/procfs/fs_procfsproc.c
+++ b/nuttx/fs/procfs/fs_procfsproc.c
@@ -641,7 +641,7 @@ static int process_dup(FAR const struct file *oldp, FAR struct file *newp)
/* Allocate a new container to hold the task and attribute selection */
- newattr = (FAR struct process_file_s *)kzalloc(sizeof(struct process_file_s));
+ newattr = (FAR struct process_file_s *)kmalloc(sizeof(struct process_file_s));
if (!newattr)
{
fdbg("ERROR: Failed to allocate file attributes\n");