diff options
Diffstat (limited to 'fs/autofs4/autofs_i.h')
| -rw-r--r-- | fs/autofs4/autofs_i.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index 8e98cf954bab..d10e619632ab 100644 --- a/fs/autofs4/autofs_i.h +++ b/fs/autofs4/autofs_i.h | |||
| @@ -213,7 +213,7 @@ void autofs4_clean_ino(struct autofs_info *); | |||
| 213 | 213 | ||
| 214 | static inline int autofs_prepare_pipe(struct file *pipe) | 214 | static inline int autofs_prepare_pipe(struct file *pipe) |
| 215 | { | 215 | { |
| 216 | if (!pipe->f_op->write) | 216 | if (!(pipe->f_mode & FMODE_CAN_WRITE)) |
| 217 | return -EINVAL; | 217 | return -EINVAL; |
| 218 | if (!S_ISFIFO(file_inode(pipe)->i_mode)) | 218 | if (!S_ISFIFO(file_inode(pipe)->i_mode)) |
| 219 | return -EINVAL; | 219 | return -EINVAL; |
