]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.6.4/usb-musb-host-correct-cppi-dma-channel-for-isoch-transfer.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.6.4 / usb-musb-host-correct-cppi-dma-channel-for-isoch-transfer.patch
CommitLineData
e370d1cd
GKH
1From 04471eb8c3158c0ad9df4b24da845a63b2e8f23a Mon Sep 17 00:00:00 2001
2From: Bin Liu <b-liu@ti.com>
3Date: Tue, 31 May 2016 10:05:25 -0500
4Subject: usb: musb: host: correct cppi dma channel for isoch transfer
5
6From: Bin Liu <b-liu@ti.com>
7
8commit 04471eb8c3158c0ad9df4b24da845a63b2e8f23a upstream.
9
10Incorrect cppi dma channel is referenced in musb_rx_dma_iso_cppi41(),
11which causes kernel NULL pointer reference oops later when calling
12cppi41_dma_channel_program().
13
14Fixes: 069a3fd (usb: musb: Remove ifdefs for musb_host_rx in musb_host.c
15part1)
16
17Reported-by: Matwey V. Kornilov <matwey@sai.msu.ru>
18Acked-by: Tony Lindgren <tony@atomide.com>
19Signed-off-by: Bin Liu <b-liu@ti.com>
20Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21
22---
23 drivers/usb/musb/musb_host.c | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-)
25
26--- a/drivers/usb/musb/musb_host.c
27+++ b/drivers/usb/musb/musb_host.c
28@@ -1556,7 +1556,7 @@ static int musb_rx_dma_iso_cppi41(struct
29 struct urb *urb,
30 size_t len)
31 {
32- struct dma_channel *channel = hw_ep->tx_channel;
33+ struct dma_channel *channel = hw_ep->rx_channel;
34 void __iomem *epio = hw_ep->regs;
35 dma_addr_t *buf;
36 u32 length, res;