Commit 80fad5b9 authored by trenn@suse.de's avatar trenn@suse.de Committed by Corey Minyard

ipmi: Unregister previously registered driver in error case

Signed-off-by: default avatarThomas Renninger <trenn@suse.de>
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent a11213fc
......@@ -4435,6 +4435,7 @@ static int ipmi_init_msghandler(void)
proc_ipmi_root = proc_mkdir("ipmi", NULL);
if (!proc_ipmi_root) {
printk(KERN_ERR PFX "Unable to create IPMI proc dir");
driver_unregister(&ipmidriver.driver);
return -ENOMEM;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment