dmaengine: stm32: replace "%p" with "%pK"
The format specifier "%p" can leak kernel addresses. Use "%pK" instead. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com> Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
e6a785116d
commit
90ec93cb6b
|
@ -594,7 +594,7 @@ static void stm32_dma_start_transfer(struct stm32_dma_chan *chan)
|
|||
|
||||
chan->busy = true;
|
||||
|
||||
dev_dbg(chan2dev(chan), "vchan %p: started\n", &chan->vchan);
|
||||
dev_dbg(chan2dev(chan), "vchan %pK: started\n", &chan->vchan);
|
||||
}
|
||||
|
||||
static void stm32_dma_configure_next_sg(struct stm32_dma_chan *chan)
|
||||
|
@ -693,7 +693,7 @@ static void stm32_dma_issue_pending(struct dma_chan *c)
|
|||
|
||||
spin_lock_irqsave(&chan->vchan.lock, flags);
|
||||
if (vchan_issue_pending(&chan->vchan) && !chan->desc && !chan->busy) {
|
||||
dev_dbg(chan2dev(chan), "vchan %p: issued\n", &chan->vchan);
|
||||
dev_dbg(chan2dev(chan), "vchan %pK: issued\n", &chan->vchan);
|
||||
stm32_dma_start_transfer(chan);
|
||||
|
||||
}
|
||||
|
|
|
@ -1170,7 +1170,7 @@ static void stm32_mdma_start_transfer(struct stm32_mdma_chan *chan)
|
|||
|
||||
chan->busy = true;
|
||||
|
||||
dev_dbg(chan2dev(chan), "vchan %p: started\n", &chan->vchan);
|
||||
dev_dbg(chan2dev(chan), "vchan %pK: started\n", &chan->vchan);
|
||||
}
|
||||
|
||||
static void stm32_mdma_issue_pending(struct dma_chan *c)
|
||||
|
@ -1183,7 +1183,7 @@ static void stm32_mdma_issue_pending(struct dma_chan *c)
|
|||
if (!vchan_issue_pending(&chan->vchan))
|
||||
goto end;
|
||||
|
||||
dev_dbg(chan2dev(chan), "vchan %p: issued\n", &chan->vchan);
|
||||
dev_dbg(chan2dev(chan), "vchan %pK: issued\n", &chan->vchan);
|
||||
|
||||
if (!chan->desc && !chan->busy)
|
||||
stm32_mdma_start_transfer(chan);
|
||||
|
@ -1203,7 +1203,7 @@ static int stm32_mdma_pause(struct dma_chan *c)
|
|||
spin_unlock_irqrestore(&chan->vchan.lock, flags);
|
||||
|
||||
if (!ret)
|
||||
dev_dbg(chan2dev(chan), "vchan %p: pause\n", &chan->vchan);
|
||||
dev_dbg(chan2dev(chan), "vchan %pK: pause\n", &chan->vchan);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -1240,7 +1240,7 @@ static int stm32_mdma_resume(struct dma_chan *c)
|
|||
|
||||
spin_unlock_irqrestore(&chan->vchan.lock, flags);
|
||||
|
||||
dev_dbg(chan2dev(chan), "vchan %p: resume\n", &chan->vchan);
|
||||
dev_dbg(chan2dev(chan), "vchan %pK: resume\n", &chan->vchan);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue