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)
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>

No differences found