From: Jes Sorensen Date: Thu, 6 Aug 2015 16:46:31 +0000 (-0400) Subject: orinoco: Do not call wiphy_unregister() from free_orinocodev() X-Git-Tag: omap-for-v4.3/fixes-rc1~110^2~124^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94fdc2e627d1b479a117cd8b9ece5f4613a5c956;p=pandora-kernel.git orinoco: Do not call wiphy_unregister() from free_orinocodev() alloc_orinocodev() would allocate the wiphy entry, but it would only get registered much later in orinoco_init(). If something failed in the init process inbetween the call to alloc_orinocodev() and the completion of orinoco_init(), the drivers would end up calling wiphy_unregister() with a NULL pointer causing beautiful OOPS fireworks. Explicitly call wiphy_unregister() instead in the right places. Signed-off-by: Jes Sorensen Signed-off-by: Kalle Valo --- Reading git-diff-tree failed