TMPFS: Fix yet another bug

This commit is contained in:
Gregory Nutt 2015-10-10 17:04:38 -06:00
parent d6fa78a1b0
commit 838f9e5a18
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 20921ccad2cf456d6828d5d9f4ec8763a5f31f1f
Subproject commit b16519ea24e26d50c61202ea80802a0417daeb11

View File

@ -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;
}