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:
parent
e428f3852a
commit
a704344595
@ -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 */
|
/* Recover our private data from the struct file instance */
|
||||||
|
|
||||||
tfo = filep->f_inode->i_private;
|
tfo = filep->f_priv;
|
||||||
|
|
||||||
DEBUGASSERT(tfo != NULL);
|
DEBUGASSERT(tfo != NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user