mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
TMPFS: Fix yet another bug
This commit is contained in:
+1
-1
Submodule configs updated: 20921ccad2...b16519ea24
+2
-2
@@ -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 */
|
/* Recover our private data from the struct file instance */
|
||||||
|
|
||||||
tfo = oldp->f_inode->i_private;
|
tfo = oldp->f_priv;
|
||||||
DEBUGASSERT(tfo != NULL);
|
DEBUGASSERT(tfo != NULL);
|
||||||
|
|
||||||
/* Increment the reference count (atomically)*/
|
/* 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.
|
* structures so there is not really much to the dup operation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
newp->f_inode->i_private = tfo;
|
newp->f_priv = tfo;
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user