dmaengine: ack to flags: make use of the unused bits in the 'ack' field
[linux-2.6.git] / crypto / async_tx / async_memcpy.c
index 84caa4e..a5eda80 100644 (file)
@@ -77,7 +77,7 @@ async_memcpy(struct page *dest, struct page *src, unsigned int dest_offset,
                        /* if ack is already set then we cannot be sure
                         * we are referring to the correct operation
                         */
-                       BUG_ON(depend_tx->ack);
+                       BUG_ON(async_tx_test_ack(depend_tx));
                        if (dma_wait_for_async_tx(depend_tx) == DMA_ERROR)
                                panic("%s: DMA_ERROR waiting for depend_tx\n",
                                        __func__);