[PATCH V3] usb/gadget: fix poller NPE in early polling

Sascha Hauer s.hauer at pengutronix.de
Mon Jan 23 03:48:21 EST 2012


Hi Robert,

On Fri, Jan 20, 2012 at 09:17:24PM +0100, Robert Jarzmik wrote:
> The timings of the poller calling have changed, digging out
> a latent bug in pxa27x udc controller.
> The polling routine is called before the probe function is
> called, and the driver internal are not initialized at that
> time. This triggers a NULL pointer exception.
> 
> Fix it by moving poller registration after driver probe.

Please specifiy for which branch this is targeted next time. I was
about to apply it for next until I realized that this breakage is
already in master.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list