aboutsummaryrefslogtreecommitdiffstats
path: root/fs/splice.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/splice.c')
-rw-r--r--fs/splice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/splice.c b/fs/splice.c
index 6909d89d0da5..963213d56403 100644
--- a/fs/splice.c
+++ b/fs/splice.c
@@ -1170,7 +1170,7 @@ ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd,
1170 * randomly drop data for eg socket -> socket splicing. Use the 1170 * randomly drop data for eg socket -> socket splicing. Use the
1171 * piped splicing for that! 1171 * piped splicing for that!
1172 */ 1172 */
1173 i_mode = in->f_path.dentry->d_inode->i_mode; 1173 i_mode = file_inode(in)->i_mode;
1174 if (unlikely(!S_ISREG(i_mode) && !S_ISBLK(i_mode))) 1174 if (unlikely(!S_ISREG(i_mode) && !S_ISBLK(i_mode)))
1175 return -EINVAL; 1175 return -EINVAL;
1176 1176