[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87mtpegak8.fsf@kernel.org>
Date: Wed, 18 Aug 2021 16:10:55 +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
Subject: Re: [PATCH] usb: gadget: mv_u3d: Change functon call in mv_u3d_probe()
Hi,
(first of all, your subject could be a little more descriptive,
something like:
usb: gadget: mv_u3d: request_irq() after initializing UDC
as that would better detail what you're doing)
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).
this looks like an important bug fix, it probably deserves a stable tag
here. Which commit introduce this problem? Otherr than that, commits
looks good.
--
balbi
Powered by blists - more mailing lists