[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87k0kig6v2.fsf@kernel.org>
Date: Wed, 18 Aug 2021 17:33:16 +0300
From: Felipe Balbi <balbi@...nel.org>
To: Nadezda Lutovinova <lutovinova@...ras.ru>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Johan Hovold <johan@...nel.org>, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org, ldv-project@...uxtesting.org,
stable@...r.kernel.org
Subject: Re: [PATCH v2] usb: gadget: mv_u3d: request_irq() after
initializing UDC
Nadezda Lutovinova <lutovinova@...ras.ru> writes:
> If IRQ occurs between calling request_irq() and mv_u3d_eps_init(),
> then null pointer dereference occurs since u3d->eps[] wasn't
> initialized yet but used in mv_u3d_nuke().
>
> The patch puts registration of the interrupt handler after
> initializing of neccesery data.
>
> Found by Linux Driver Verification project (linuxtesting.org).
>
> Fixes: 90fccb529d24 ("usb: gadget: Gadget directory cleanup - group UDC drivers")
> Signed-off-by: Nadezda Lutovinova <lutovinova@...ras.ru>
Thanks for updating so quickly:
Acked-by: Felipe Balbi <balbi@...nel.org>
--
balbi
Powered by blists - more mailing lists