From a70434459534c35b850208d85aad1d92e4a2ff84 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 24 Jul 2018 06:00:40 -0600 Subject: [PATCH] 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. --- fs/tmpfs/fs_tmpfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/tmpfs/fs_tmpfs.c b/fs/tmpfs/fs_tmpfs.c index fe5a44be13b..c50cd578628 100644 --- a/fs/tmpfs/fs_tmpfs.c +++ b/fs/tmpfs/fs_tmpfs.c @@ -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);