Skip to content

Commit 815c4b3

Browse files
author
CKI KWF Bot
committed
Merge: fs/proc/kcore.c: Clear ret value in read_kcore_iter after successful iov_iter_zero
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/1207 JIRA: https://issues.redhat.com/browse/RHEL-83630 This fix a bug when makedumpfile read /proc/kcore. Signed-off-by: Lichen Liu <lichliu@redhat.com> Approved-by: Brian Foster <bfoster@redhat.com> Approved-by: Baoquan He <5820488-baoquan_he@users.noreply.gitlab.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>
2 parents 934a115 + b1ddf39 commit 815c4b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/proc/kcore.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ static ssize_t read_kcore_iter(struct kiocb *iocb, struct iov_iter *iter)
600600
ret = -EFAULT;
601601
goto out;
602602
}
603+
ret = 0;
603604
/*
604605
* We know the bounce buffer is safe to copy from, so
605606
* use _copy_to_iter() directly.

0 commit comments

Comments
 (0)