From: Dan Carpenter Date: Fri, 20 Jul 2012 06:58:16 +0000 (+0300) Subject: USB: whci-hcd: fix NULL dereference on allocation failure X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~73^2~184 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3821bf4abb7f78c90af7fa2975df6618906b11ec;p=pandora-kernel.git USB: whci-hcd: fix NULL dereference on allocation failure If usb_create_hcd() fails here then we dereference "whc" inside the call to whc_clean_up() before it has been set. The compiler would have warned about this if we hadn't initialized all the pointers to NULL at the start of the function. I've cleaned that up as well. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed