From 838f9e5a1875fc35e91ec6de8f64c45b43b9fd4f Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 10 Oct 2015 17:04:38 -0600 Subject: [PATCH] TMPFS: Fix yet another bug --- configs | 2 +- fs/tmpfs/fs_tmpfs.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configs b/configs index 20921ccad2..b16519ea24 160000 --- a/configs +++ b/configs @@ -1 +1 @@ -Subproject commit 20921ccad2cf456d6828d5d9f4ec8763a5f31f1f +Subproject commit b16519ea24e26d50c61202ea80802a0417daeb11 diff --git a/fs/tmpfs/fs_tmpfs.c b/fs/tmpfs/fs_tmpfs.c index 9984cc5d65..4c2b78ef4b 100644 --- a/fs/tmpfs/fs_tmpfs.c +++ b/fs/tmpfs/fs_tmpfs.c @@ -1734,7 +1734,7 @@ static int tmpfs_dup(FAR const struct file *oldp, FAR struct file *newp) /* Recover our private data from the struct file instance */ - tfo = oldp->f_inode->i_private; + tfo = oldp->f_priv; DEBUGASSERT(tfo != NULL); /* Increment the reference count (atomically)*/ @@ -1748,7 +1748,7 @@ static int tmpfs_dup(FAR const struct file *oldp, FAR struct file *newp) * structures so there is not really much to the dup operation. */ - newp->f_inode->i_private = tfo; + newp->f_priv = tfo; return OK; }