]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/splice.c
splice: direct_splice_actor() should not use pos in sd
[karo-tx-linux.git] / fs / splice.c
index 9313b6124a2e40c7824e6f03b4fc5af72c1cd00a..5be13449150e7735e8a77a9c9973f444a18da292 100644 (file)
@@ -1232,7 +1232,8 @@ static int direct_splice_actor(struct pipe_inode_info *pipe,
 {
        struct file *file = sd->u.file;
 
-       return do_splice_from(pipe, file, &sd->pos, sd->total_len, sd->flags);
+       return do_splice_from(pipe, file, &file->f_pos, sd->total_len,
+                             sd->flags);
 }
 
 /**