[PATCH] IPMI: Fix oops on ipmi_msghandler removal for non ipmi systems
authorArnaud Patard <apatard@mandriva.com>
Sat, 16 Sep 2006 19:15:36 +0000 (12:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 16 Sep 2006 19:54:30 +0000 (12:54 -0700)
commit55ebcc38a5f6d40e4c41447e413ef842b803980f
tree88958844c61fd9772e86a70bde2f274fb8f0d814
parente1ed7ac77b63abb6b3a2c0b4b070f50da5b1fb2f
[PATCH] IPMI: Fix oops on ipmi_msghandler removal for non ipmi systems

When the ipmi_si module is loaded on a system without any ipmi device, it
fails with nodev.  It would be fine if all resources were freed.  A call to
device_unregister() is missing, resulting to a oops when you remove the
ipmi_msghandler.

Signed-off-by: Arnaud Patard <apatard@mandriva.com>
Acked-by: Corey Minyard <minyard@acm.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/ipmi/ipmi_si_intf.c