ipmi: Unregister previously registered driver in error case
Signed-off-by: Thomas Renninger <trenn@suse.de> Signed-off-by: Corey Minyard <cminyard@mvista.com>
This commit is contained in:
parent
a11213fc36
commit
80fad5b959
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue