projects/linux·commit 45d866e1

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

45d866e1 · Linus Torvalds <[email protected]> · 2008-09-05 14:35:56 -07:00

* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx:
  async_tx: fix the bug in async_tx_run_dependencies
Commit
45d866e1a06dba309f79dbb61ad1db964bb8ee8a
Parents
6f74b184 · de24125d

Merge commit. Changes below are compared with the first parent: 6f74b184.

Changes

1 files changed · +2 −1

FileStatusAddDelContent
crypto/async_tx/async_tx.cmodified+2−1View file

crypto/async_tx/async_tx.c

View file
diff --git a/crypto/async_tx/async_tx.c b/crypto/async_tx/async_tx.c
index 85eaf7b..e8362c1 100644
--- a/crypto/async_tx/async_tx.c
+++ b/crypto/async_tx/async_tx.c
@@ -137,7 +137,8 @@ async_tx_run_dependencies(struct dma_async_tx_descriptor *tx)
spin_lock_bh(&next->lock);
next->parent = NULL;
_next = next->next;
- next->next = NULL;
+ if (_next && _next->chan == chan)
+ next->next = NULL;
spin_unlock_bh(&next->lock);
next->tx_submit(next);