projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61cd220
)
DMAENGINE: at_hdmac: locking fixlet
author
Yong Wang
<
[email protected]
>
Thu, 5 Aug 2010 02:40:08 +0000
(10:40 +0800)
committer
Dan Williams
<
[email protected]
>
Thu, 5 Aug 2010 05:09:17 +0000
(22:09 -0700)
atc_chain_complete shall be called with atchan->lock held
and bh disabled.
Signed-off-by: Yong Wang <
[email protected]
>
Signed-off-by: Dan Williams <
[email protected]
>
drivers/dma/at_hdmac.c
patch
|
blob
|
history
diff --git
a/drivers/dma/at_hdmac.c
b/drivers/dma/at_hdmac.c
index bd5250e8c00c2b6e3aaf285c3e23dd9f158978c3..646f6d6809f5690908fba47b86446a6d10e88cad 100644
(file)
--- a/
drivers/dma/at_hdmac.c
+++ b/
drivers/dma/at_hdmac.c
@@
-790,12
+790,12
@@
static int atc_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd,
list_splice_init(&atchan->queue, &list);
list_splice_init(&atchan->active_list, &list);
- spin_unlock_bh(&atchan->lock);
-
/* Flush all pending and queued descriptors */
list_for_each_entry_safe(desc, _desc, &list, desc_node)
atc_chain_complete(atchan, desc);
+ spin_unlock_bh(&atchan->lock);
+
return 0;
}