Skip to content

Commit 85f3f17

Browse files
committed
Merge branch 'md-fixes' of https://git.kernel.org/pub/scm/linux/kernel/git/song/md into block-5.13
Pull MD related fix from Song. * 'md-fixes' of https://git.kernel.org/pub/scm/linux/kernel/git/song/md: async_xor: check src_offs is not NULL before updating it
2 parents 990e781 + 9be148e commit 85f3f17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crypto/async_tx/async_xor.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ async_xor_offs(struct page *dest, unsigned int offset,
233233
if (submit->flags & ASYNC_TX_XOR_DROP_DST) {
234234
src_cnt--;
235235
src_list++;
236-
src_offs++;
236+
if (src_offs)
237+
src_offs++;
237238
}
238239

239240
/* wait for any prerequisite operations */

0 commit comments

Comments
 (0)