async_xor: increase src_offs when dropping destination page
[linux-2.6-microblaze.git] / crypto / async_tx / async_xor.c
index a057ecb..6cd7f70 100644 (file)
@@ -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 */