From: Will Newton Date: Tue, 12 Aug 2008 14:39:17 +0000 (+0100) Subject: fsl_usb2_udc: Fix oops on probe failure. X-Git-Tag: v2.6.28-rc1~254^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23d7cd040e1f43113da3e8763becf576ab86b39a;p=pandora-kernel.git fsl_usb2_udc: Fix oops on probe failure. In some circumstances when fsl_udc_probe fails udc_controller is freed but the pointer remains non-NULL. fsl_udc_remove will then try and teardown the partly initialized and freed controller structure resulting in an oops. This patch ensures udc_controller is either NULL or fully initialized after fsl_udc_probe. Signed-off-by: Will Newton Acked-by: Li Yang Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed