async_tx: fix dma_wait_for_async_tx
authorDan Williams <dan.j.williams@intel.com>
Fri, 21 Sep 2007 20:27:04 +0000 (13:27 -0700)
committerDan Williams <dan.j.williams@intel.com>
Mon, 24 Sep 2007 17:26:26 +0000 (10:26 -0700)
commit6247cdc2cd334dad0ea5428245a7d8f4b075f21e
tree275bfcdb142a92ea347d264b6b37b17c98d41733
parentc5d2b9f444b8d9f5ad7c5e583686c119ba3a9ba7
async_tx: fix dma_wait_for_async_tx

Fix dma_wait_for_async_tx to not loop forever in the case where a
dependency chain is longer than two entries.  This condition will not
happen with current in-kernel drivers, but fix it for future drivers.

Found-by: Saeed Bishara <saeed.bishara@gmail.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
crypto/async_tx/async_tx.c