Commit 1c075f95 authored by Liu Gang's avatar Liu Gang Committed by Scott Wood

powerpc/rmu: Fix the error memory free parameters

There are error parameters should be corrected when
calling dma_free_coherent to free rmu rx-ring buffers
in fsl_open_inb_mbox() function.
Signed-off-by: default avatarLiu Gang <Gang.Liu@freescale.com>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
parent e57eeae4
...@@ -881,9 +881,9 @@ fsl_open_inb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) ...@@ -881,9 +881,9 @@ fsl_open_inb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries)
rc = request_irq(IRQ_RIO_RX(mport), fsl_rio_rx_handler, 0, rc = request_irq(IRQ_RIO_RX(mport), fsl_rio_rx_handler, 0,
"msg_rx", (void *)mport); "msg_rx", (void *)mport);
if (rc < 0) { if (rc < 0) {
dma_free_coherent(priv->dev, RIO_MSG_BUFFER_SIZE, dma_free_coherent(priv->dev,
rmu->msg_tx_ring.virt_buffer[i], rmu->msg_rx_ring.size * RIO_MAX_MSG_SIZE,
rmu->msg_tx_ring.phys_buffer[i]); rmu->msg_rx_ring.virt, rmu->msg_rx_ring.phys);
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment