|
@@ -4275,13 +4275,11 @@ tracing_buffers_splice_read(struct file *file, loff_t *ppos,
|
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
|
|
|
|
|
|
if (*ppos & (PAGE_SIZE - 1)) {
|
|
if (*ppos & (PAGE_SIZE - 1)) {
|
|
|
- WARN_ONCE(1, "Ftrace: previous read must page-align\n");
|
|
|
|
|
ret = -EINVAL;
|
|
ret = -EINVAL;
|
|
|
goto out;
|
|
goto out;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (len & (PAGE_SIZE - 1)) {
|
|
if (len & (PAGE_SIZE - 1)) {
|
|
|
- WARN_ONCE(1, "Ftrace: splice_read should page-align\n");
|
|
|
|
|
if (len < PAGE_SIZE) {
|
|
if (len < PAGE_SIZE) {
|
|
|
ret = -EINVAL;
|
|
ret = -EINVAL;
|
|
|
goto out;
|
|
goto out;
|