OSDN Git Service

usb: musb: dma: Correct parameter passed to IRQ handler
authorPaul Cercueil <paul@crapouillou.net>
Mon, 16 Dec 2019 16:18:43 +0000 (10:18 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 19:03:05 +0000 (20:03 +0100)
commit2fa3c804a08dbee99f1c87952a9aa3e93f20bed9
tree475ef53e874a5fc296ecd8f311d61c772c5ee481
parentb788d2a9959cd92d5c43132e807741c1bd551b8c
usb: musb: dma: Correct parameter passed to IRQ handler

commit c80d0f4426c7fdc7efd6ae8d8b021dcfc89b4254 upstream.

The IRQ handler was passed a pointer to a struct dma_controller, but the
argument was then casted to a pointer to a struct musb_dma_controller.

Fixes: 427c4f333474 ("usb: struct device - replace bus_id with dev_name(), dev_set_name()")
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Tested-by: Artur Rojek <contact@artur-rojek.eu>
Cc: stable@vger.kernel.org
Signed-off-by: Bin Liu <b-liu@ti.com>
Link: https://lore.kernel.org/r/20191216161844.772-2-b-liu@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musbhsdma.c