mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 09:45:55 +08:00
fs/tmpfs/fs_tmpfs.c: Correct logic in tmpfs_ioctl() that extracts the priv state structure from the file system structures. It was not getting the right value and causing mmap() to fail. Noted by Jesse.
This commit is contained in:
+1
-1
@@ -1733,7 +1733,7 @@ static int tmpfs_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
|
||||
/* Recover our private data from the struct file instance */
|
||||
|
||||
tfo = filep->f_inode->i_private;
|
||||
tfo = filep->f_priv;
|
||||
|
||||
DEBUGASSERT(tfo != NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user