mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
pch_dma: Use GFP_ATOMIC because called from interrupt context
commit 5c1ef59168
upstream.
pdc_desc_get() is called from pd_prep_slave_sg, and the function is
called from interrupt context(e.g. Uart driver "pch_uart.c").
In fact, I saw kernel error message.
So, GFP_ATOMIC must be used not GFP_NOIO.
Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
22f9c13508
commit
dd77cf8cc7
1 changed files with 1 additions and 1 deletions
|
@ -476,7 +476,7 @@ static struct pch_dma_desc *pdc_desc_get(struct pch_dma_chan *pd_chan)
|
|||
dev_dbg(chan2dev(&pd_chan->chan), "scanned %d descriptors\n", i);
|
||||
|
||||
if (!ret) {
|
||||
ret = pdc_alloc_desc(&pd_chan->chan, GFP_NOIO);
|
||||
ret = pdc_alloc_desc(&pd_chan->chan, GFP_ATOMIC);
|
||||
if (ret) {
|
||||
spin_lock(&pd_chan->lock);
|
||||
pd_chan->descs_allocated++;
|
||||
|
|
Loading…
Reference in a new issue