]> git.baikalelectronics.ru Git - kernel.git/commit
ipmi: make sure drivers were registered before unregistering them
authorMatthew Garrett <mjg@redhat.com>
Tue, 29 Jun 2010 22:05:29 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Jun 2010 22:29:31 +0000 (15:29 -0700)
commit344ed231b64e9a9dc561db7160a0cc175912defa
tree74d6962b3e056fdf6303f7fc12f9e50b514faf11
parent884e0cf813f838d0cbcea8d75f7fb6dbf5dc670a
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 <mjg@redhat.com>
Acked-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/ipmi/ipmi_si_intf.c