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

From: Alan Stern
Date: Thu Dec 03 2015 - 10:25:34 EST


On Thu, 3 Dec 2015, Nicolas Ferre wrote:

> Le 02/12/2015 20:36, Alexandre Belloni a éit :
> > 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@xxxxxxxxxxxxxxx # 4.3+
>
>
> > Reported-by: Peter Rosin <peda@xxxxxxxxxx>
> > Tested-by: Peter Rosin <peda@xxxxxxxxxx>
> > Signed-off-by: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxxxxxxxxx>
>
> Acked-by: Nicolas Ferre <nicolas.ferre@xxxxxxxxx>
>
> 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@xxxxxxxxxxxxxxxxxxx>

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/