diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/async_tx/async_xor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/async_tx/async_xor.c b/crypto/async_tx/async_xor.c index 1e96c4df7061..78fb7780272a 100644 --- a/crypto/async_tx/async_xor.c +++ b/crypto/async_tx/async_xor.c | |||
@@ -246,7 +246,7 @@ static int page_is_zero(struct page *p, unsigned int offset, size_t len) | |||
246 | */ | 246 | */ |
247 | struct dma_async_tx_descriptor * | 247 | struct dma_async_tx_descriptor * |
248 | async_xor_val(struct page *dest, struct page **src_list, unsigned int offset, | 248 | async_xor_val(struct page *dest, struct page **src_list, unsigned int offset, |
249 | int src_cnt, size_t len, u32 *result, | 249 | int src_cnt, size_t len, enum sum_check_flags *result, |
250 | struct async_submit_ctl *submit) | 250 | struct async_submit_ctl *submit) |
251 | { | 251 | { |
252 | struct dma_chan *chan = async_tx_find_channel(submit, DMA_XOR_VAL, | 252 | struct dma_chan *chan = async_tx_find_channel(submit, DMA_XOR_VAL, |
@@ -304,7 +304,7 @@ async_xor_val(struct page *dest, struct page **src_list, unsigned int offset, | |||
304 | 304 | ||
305 | async_tx_quiesce(&tx); | 305 | async_tx_quiesce(&tx); |
306 | 306 | ||
307 | *result = page_is_zero(dest, offset, len) ? 0 : 1; | 307 | *result = !page_is_zero(dest, offset, len) << SUM_CHECK_P; |
308 | 308 | ||
309 | async_tx_sync_epilog(submit); | 309 | async_tx_sync_epilog(submit); |
310 | submit->flags = flags_orig; | 310 | submit->flags = flags_orig; |