fs/tmpfs: Fix tmpfs_ioctl() logic
Fixes the 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.
This patch is back-ported from Nuttx.
@@ -1635,7 +1635,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);
