projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd37978
)
fix nommu breakage in shmem.c
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 2 Mar 2013 01:22:53 +0000
(20:22 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 2 Mar 2013 04:50:45 +0000
(23:50 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
mm/shmem.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/shmem.c
b/mm/shmem.c
index ed2befb4952e1805d8407ab1716acb56be052305..1c44af71fcf5044be40d2e22b19dd66726e3f8be 100644
(file)
--- a/
mm/shmem.c
+++ b/
mm/shmem.c
@@
-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