]> err.no Git - linux-2.6/commitdiff
async_tx: fix missing braces in async_xor_zero_sum
authorDan Williams <dan.j.williams@intel.com>
Tue, 5 Aug 2008 17:22:05 +0000 (10:22 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 5 Aug 2008 17:25:20 +0000 (10:25 -0700)
Found-by: Yuri Tikhonov <yur@emcraft.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
crypto/async_tx/async_xor.c

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