Unverified Commit 97ae5e9d authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents b65c0c4f d1478376
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -218,6 +218,9 @@ static ssize_t seq_read_dirty(
	}

	n = min(m->count - m->from, size);
	/* check if this is the last read */
	if (n == 0)
		goto done;
	n -= copy_to_user(buf, m->buf + m->from, n);
	if (unlikely(!n)) {
		err = -EFAULT;