git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Remove security_inode_post_create/mkdir/symlink/mknod hooks
[pandora-kernel.git]
/
mm
/
fadvise.c
diff --git
a/mm/fadvise.c
b/mm/fadvise.c
index
57264d7
..
5f19e87
100644
(file)
--- a/
mm/fadvise.c
+++ b/
mm/fadvise.c
@@
-43,6
+43,10
@@
asmlinkage long sys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice)
goto out;
}
+ if (mapping->a_ops->get_xip_page)
+ /* no bad return value, but ignore advice */
+ goto out;
+
/* Careful about overflows. Len == 0 means "as much as possible" */
endbyte = offset + len;
if (!len || endbyte < len)