Skip to content

Commit faa1dbb

Browse files
liubiingregkh
authored andcommitted
usb: musb: host: correct cppi dma channel for isoch transfer
commit 04471eb8c3158c0ad9df4b24da845a63b2e8f23a 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: 069a3fd (usb: musb: Remove ifdefs for musb_host_rx in musb_host.c part1) Reported-by: Matwey V. Kornilov <matwey@sai.msu.ru> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a8f7a6d commit faa1dbb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/usb/musb/musb_host.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,7 @@ static int musb_rx_dma_iso_cppi41(struct dma_controller *dma,
15561556
struct urb *urb,
15571557
size_t len)
15581558
{
1559-
struct dma_channel *channel = hw_ep->tx_channel;
1559+
struct dma_channel *channel = hw_ep->rx_channel;
15601560
void __iomem *epio = hw_ep->regs;
15611561
dma_addr_t *buf;
15621562
u32 length, res;

0 commit comments

Comments
 (0)