浏览代码

Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx

* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx:
  async_tx: fix missing braces in async_xor_zero_sum
Linus Torvalds 17 年之前
父节点
当前提交
2e4f40d2eb
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      crypto/async_tx/async_xor.c

+ 2 - 1
crypto/async_tx/async_xor.c

@@ -263,11 +263,12 @@ async_xor_zero_sum(struct page *dest, struct page **src_list,
 		if (unlikely(!tx)) {
 		if (unlikely(!tx)) {
 			async_tx_quiesce(&depend_tx);
 			async_tx_quiesce(&depend_tx);
 
 
-			while (!tx)
+			while (!tx) {
 				dma_async_issue_pending(chan);
 				dma_async_issue_pending(chan);
 				tx = device->device_prep_dma_zero_sum(chan,
 				tx = device->device_prep_dma_zero_sum(chan,
 					dma_src, src_cnt, len, result,
 					dma_src, src_cnt, len, result,
 					dma_prep_flags);
 					dma_prep_flags);
+			}
 		}
 		}
 
 
 		async_tx_submit(chan, tx, flags, depend_tx, cb_fn, cb_param);
 		async_tx_submit(chan, tx, flags, depend_tx, cb_fn, cb_param);