]> git.baikalelectronics.ru Git - kernel.git/commit
s390/crash: add missing iterator advance in copy_oldmem_page()
authorAlexander Gordeev <agordeev@linux.ibm.com>
Fri, 10 Jun 2022 09:04:36 +0000 (11:04 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Thu, 23 Jun 2022 15:23:30 +0000 (17:23 +0200)
commit6a839ea05f35f44c61e3e5f8ce045adda056da3f
treeed7e2630e0281862e5823e87891a0939de073aba
parent08aafa0d475a08e31a13403e9df41c7179f4bdcd
s390/crash: add missing iterator advance in copy_oldmem_page()

In case old memory was successfully copied the passed iterator
should be advanced as well. Currently copy_oldmem_page() is
always called with single-segment iterator. Should that ever
change - copy_oldmem_user and copy_oldmem_kernel() functions
would need a rework to deal with multi-segment iterators.

Fixes: 95e40cf0f4c4 ("vmcore: convert copy_oldmem_page() to take an iov_iter")
Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Tested-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/kernel/crash_dump.c