Files
Linux/crypto
Xiao Ni 9be148e408 async_xor: check src_offs is not NULL before updating it
When PAGE_SIZE is greater than 4kB, multiple stripes may share the same
page. Thus, src_offs is added to async_xor_offs() with array of offsets.
However, async_xor() passes NULL src_offs to async_xor_offs(). In such
case, src_offs should not be updated. Add a check before the update.

Fixes: ceaf2966ab08(async_xor: increase src_offs when dropping destination page)
Cc: [email protected] # v5.10+
Reported-by: Oleksandr Shchirskyi <[email protected]>
Tested-by: Oleksandr Shchirskyi <[email protected]>
Signed-off-by: Xiao Ni <[email protected]>
Signed-off-by: Song Liu <[email protected]>
2021-06-10 19:40:14 -07:00
..
…
2020-08-28 16:58:28 +10:00
2021-03-26 19:55:55 +11:00
…
…
…
2020-02-28 08:43:21 +08:00
…
…
2021-03-26 19:55:55 +11:00
2021-03-26 19:55:55 +11:00
…