Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26567cdb authored by Al Viro's avatar Al Viro
Browse files

fix nommu breakage in shmem.c



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent dd37978c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -2932,9 +2932,8 @@ struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags
	inode->i_size = size;
	clear_nlink(inode);	/* It is unlinked */
#ifndef CONFIG_MMU
	error = ramfs_nommu_expand_for_mapping(inode, size);
	res = ERR_PTR(error);
	if (error)
	res = ERR_PTR(ramfs_nommu_expand_for_mapping(inode, size));
	if (IS_ERR(res))
		goto put_dentry;
#endif