From: Matthew Garrett Date: Tue, 29 Jun 2010 22:05:29 +0000 (-0700) Subject: ipmi: make sure drivers were registered before unregistering them X-Git-Tag: v2.6.35-rc4~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56480287f9776adc5b1a7a335ef62a9b9879ad7f;p=pandora-kernel.git ipmi: make sure drivers were registered before unregistering them The ipmi code will never register a PCI or Open Firmware driver if a hardcoded device is provided by the user by providing device addresses via the module parameters. This can cause us to attempt to unregister a driver that was never registered, resulting in an oops. Keep track of registration in order to avoid this. Fixes a post-2.6.34 regression. Signed-off-by: Matthew Garrett Acked-by: Corey Minyard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed