Re: [PATCH] USB: ohci-exynos: initialize registers pointer earlier

2012-11-01 Thread Alan Stern
On Thu, 1 Nov 2012, Vincent Palatin wrote: > In the former code, we have a race condition between the first interrupt > and the regs field initilization in the usb_hcd structure. > If the OHCI irq fires before hcd->regs is set, we are getting a null > pointer dereference in ohci_irq. > > When cal

[PATCH] USB: ohci-exynos: initialize registers pointer earlier

2012-11-01 Thread Vincent Palatin
In the former code, we have a race condition between the first interrupt and the regs field initilization in the usb_hcd structure. If the OHCI irq fires before hcd->regs is set, we are getting a null pointer dereference in ohci_irq. When calling usb_add_hcd(), it first executes the reset() callba