[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <878s0wfn0c.fsf@kernel.org>
Date: Fri, 20 Aug 2021 13:06:33 +0300
From: Felipe Balbi <balbi@...nel.org>
To: Nadezda Lutovinova <lutovinova@...ras.ru>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
NXP Linux Team <linux-imx@....com>,
linux-usb@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, ldv-project@...uxtesting.org
Subject: Re: [PATCH] usb: dwc3: imx8mp: request irq after initializing dwc3
Nadezda Lutovinova <lutovinova@...ras.ru> writes:
> If IRQ occurs between calling devm_request_threaded_irq() and
> initializing dwc3_imx->dwc3, then null pointer dereference occurs
> since dwc3_imx->dwc3 is used in dwc3_imx8mp_interrupt().
>
> The patch puts registration of the interrupt handler after
> initializing of neccesery data.
>
> Found by Linux Driver Verification project (linuxtesting.org).
>
> Signed-off-by: Nadezda Lutovinova <lutovinova@...ras.ru>
Acked-by: Felipe Balbi <balbi@...nel.org>
--
balbi
Powered by blists - more mailing lists