projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Increase AT_VECTOR_SIZE
[profile/ivi/kernel-adaptation-intel-automotive.git]
/
mm
/
fadvise.c
diff --git
a/mm/fadvise.c
b/mm/fadvise.c
index
5f19e87
..
d257c89
100644
(file)
--- a/
mm/fadvise.c
+++ b/
mm/fadvise.c
@@
-37,6
+37,11
@@
asmlinkage long sys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice)
if (!file)
return -EBADF;
+ if (S_ISFIFO(file->f_dentry->d_inode->i_mode)) {
+ ret = -ESPIPE;
+ goto out;
+ }
+
mapping = file->f_mapping;
if (!mapping || len < 0) {
ret = -EINVAL;