From: Anton Vorontsov Date: Thu, 25 Dec 2008 14:15:02 +0000 (+0300) Subject: USB: fsl_qe_udc: Fix oops on QE UDC probe failure X-Git-Tag: v2.6.29-rc5~45^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94f341db3dd080851f918da37e84659ef760da26;p=pandora-kernel.git USB: fsl_qe_udc: Fix oops on QE UDC probe failure In case of probing errors the driver kfrees the udc_controller, but it doesn't set the pointer to NULL. When usb_gadget_register_driver is called, it checks for udc_controller != NULL, the check passes and the driver accesses nonexistent memory. Fix this by setting udc_controller to NULL in case of errors. While at it, also implement irq_of_parse_and_map()'s failure and cleanup cases. Signed-off-by: Anton Vorontsov Acked-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed