]> 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)
commitcc02e6e21aa5f2ac0defe8c15e5a9d024da6e73d
treeed7e2630e0281862e5823e87891a0939de073aba
parenta111daf0c53ae91e71fd2bfe7497862d14132e3e
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: 5d8de293c224 ("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