tracing: Update *ppos instead of filp->f_pos
[firefly-linux-kernel-4.4.55.git] / kernel / trace / ftrace.c
index 37ba67e33265932d28d65e4781b2135b66913c16..9c451a1930b6a7db58be0f78323f487e2ddd4562 100644 (file)
@@ -740,7 +740,7 @@ ftrace_profile_write(struct file *filp, const char __user *ubuf,
  out:
        mutex_unlock(&ftrace_profile_lock);
 
-       filp->f_pos += cnt;
+       *ppos += cnt;
 
        return cnt;
 }