Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0ebeb9c authored by Yong Wang's avatar Yong Wang Committed by Dan Williams
Browse files

DMAENGINE: at_hdmac: locking fixlet



atc_chain_complete shall be called with atchan->lock held
and bh disabled.

Signed-off-by: default avatarYong Wang <yong.y.wang@intel.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 61cd2203
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}