Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2338847ybz; Thu, 23 Apr 2020 16:18:31 -0700 (PDT) X-Google-Smtp-Source: APiQypKlW4mB4fA+cvIaFGc4+CQc0YldNa8MJ4jNJIV8anCdMnCdqZsTm2XXn9/j+REDAFZEHInU X-Received: by 2002:a50:ee0e:: with SMTP id g14mr5021455eds.34.1587683911801; Thu, 23 Apr 2020 16:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587683911; cv=none; d=google.com; s=arc-20160816; b=U7unZhfpTWLpSc2XA/u4erZv+KDcsGEcb2MY+zodFOTyV3Ksp0E0HrocA8TQ2VGr7P 9L9vHXDAsu3OIFLrYRFZ4uMai74f15tcb+C0oqvth0XrQ6+LrKOoc5Sggj0WjpLoKMhp 2sI0uSu7+4Nnyplh+kaMDkbi3EarROnFTrkPeQTpIxjRdMmNUBmJPxqAMVyW1GVTzaw8 SY432FmBg7iq1iG+AfSqBr24aMgYTaFl6mKBKt69xExIcOedLzYqWsTyTdubiCLsCBF+ 5qXO1zbktWLE7ENBHQR9CwmjMluyxFste63GMpqV8pBUl5QRUwvr0JCB85kK+fizBRCF +PMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=USUvbiwdra4ivmMMt+FEyI+HKCiwCowS2+3TclDob5A=; b=JBQHSYd0Gsv5e2BcJZJRkGIyJeAUc3R1F2aszSyAP0fg5creeTK4YAEQV9vGckQQzN iFiQ49rw0tugHaANPchsvLSYACTh7610eXWTr/MlaVYC37Ra9Bc51hSTD0fPT3It0RZS wzDNxeb4cKTP0jLeT52DjVJEXS+6SQVkzmcHPm4AEm6/yBOUITykC0K9oWQp5+KF5nQ5 KA9i09hTCosRQU7Y8xd/eqGe+i5MadRA/3WbuG+spElvAL2y0Yra8zTVWeXBD/UeRAgk RHfk3ck3esyzV3IugzdvnaSOtnKezDfu07lOv8ptQn97BHynFxoQ8IzII66SeiIZxgdd f8xg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w14si307934edf.402.2020.04.23.16.18.08; Thu, 23 Apr 2020 16:18:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729574AbgDWXPy (ORCPT + 99 others); Thu, 23 Apr 2020 19:15:54 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:49624 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728392AbgDWXGq (ORCPT ); Thu, 23 Apr 2020 19:06:46 -0400 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1jRkvT-0004hm-1K; Fri, 24 Apr 2020 00:06:35 +0100 Received: from ben by deadeye with local (Exim 4.93) (envelope-from ) id 1jRkvS-00E6qw-9O; Fri, 24 Apr 2020 00:06:34 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, Denis Kirjanov , "Paul Cercueil" , "Bin Liu" , "Greg Kroah-Hartman" , "Artur Rojek" Date: Fri, 24 Apr 2020 00:06:15 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) X-Patchwork-Hint: ignore Subject: [PATCH 3.16 148/245] usb: musb: dma: Correct parameter passed to IRQ handler In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.83-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Paul Cercueil 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 Tested-by: Artur Rojek Signed-off-by: Bin Liu Link: https://lore.kernel.org/r/20191216161844.772-2-b-liu@ti.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- drivers/usb/musb/musbhsdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/musb/musbhsdma.c +++ b/drivers/usb/musb/musbhsdma.c @@ -396,7 +396,7 @@ struct dma_controller *dma_controller_cr controller->controller.channel_abort = dma_channel_abort; if (request_irq(irq, dma_controller_irq, 0, - dev_name(musb->controller), &controller->controller)) { + dev_name(musb->controller), controller)) { dev_err(dev, "request_irq %d failed!\n", irq); dma_controller_destroy(&controller->controller);