VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Xiao Ni <xni@redhat.com> 2021-04-25 17:22:57 +0800 committer: Song Liu <song@kernel.org> 2021-04-26 10:06:12 -0700 commit: ceaf2966ab082bbc4d26516f97b3ca8a676e2af8 parent: 72ce11ddfa4e9e1879103581a60b7e34547eaa0a
Commit Summary:
async_xor: increase src_offs when dropping destination page
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/crypto/async_tx/async_xor.c b/crypto/async_tx/async_xor.c
index a057ecb1288d..6cd7f7025df4 100644
--- a/crypto/async_tx/async_xor.c
+++ b/crypto/async_tx/async_xor.c
@@ -233,6 +233,7 @@ async_xor_offs(struct page *dest, unsigned int offset,
 		if (submit->flags & ASYNC_TX_XOR_DROP_DST) {
 			src_cnt--;
 			src_list++;
+			src_offs++;
 		}
 
 		/* wait for any prerequisite operations */