Commit 59d6d2ab authored by Bin Liu's avatar Bin Liu Committed by Kamal Mostafa

usb: musb: host: correct cppi dma channel for isoch transfer

BugLink: http://bugs.launchpad.net/bugs/1601952

commit 04471eb8 upstream.

Incorrect cppi dma channel is referenced in musb_rx_dma_iso_cppi41(),
which causes kernel NULL pointer reference oops later when calling
cppi41_dma_channel_program().

Fixes: 069a3fd1 (usb: musb: Remove ifdefs for musb_host_rx in musb_host.c
part1)
Reported-by: default avatarMatwey V. Kornilov <matwey@sai.msu.ru>
Acked-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarBin Liu <b-liu@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent f8565963
......@@ -1556,7 +1556,7 @@ static int musb_rx_dma_iso_cppi41(struct dma_controller *dma,
struct urb *urb,
size_t len)
{
struct dma_channel *channel = hw_ep->tx_channel;
struct dma_channel *channel = hw_ep->rx_channel;
void __iomem *epio = hw_ep->regs;
dma_addr_t *buf;
u32 length, res;
......
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