[PATCH] USB: host: ohci-at91: fix a crash in ohci_hcd_at91_overcurrent_irq

Alan Stern stern at rowland.harvard.edu
Thu Dec 3 07:25:25 PST 2015


On Thu, 3 Dec 2015, Nicolas Ferre wrote:

> Le 02/12/2015 20:36, Alexandre Belloni a écrit :
> > The interrupt handler, ohci_hcd_at91_overcurrent_irq may be called right
> > after registration. At that time, pdev->dev.platform_data is not yet set,
> > leading to a NULL pointer dereference.
> > 
> > Fixes: e4df92279fd9 (USB: host: ohci-at91: merge loops in ohci_hcd_at91_drv_probe)
> 
> Yes, with:
> Cc: stable at vger.kernel.org # 4.3+
> 
> 
> > Reported-by: Peter Rosin <peda at axentia.se>
> > Tested-by: Peter Rosin <peda at axentia.se>
> > Signed-off-by: Alexandre Belloni <alexandre.belloni at free-electrons.com>
> 
> Acked-by: Nicolas Ferre <nicolas.ferre at atmel.com>
> 
> Alan, I think it's a good candidate to enter the 4.4-rcX...

I agree.  Greg, please merge this with a CC: stable tag added.

Acked-by: Alan Stern <stern at rowland.harvard.edu>

Alan Stern




More information about the linux-arm-kernel mailing list