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:
Gregory Nutt 2018-07-24 06:00:40 -06:00
parent e428f3852a
commit a704344595

View File

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