Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

ipmi: Unregister previously registered driver in error case

parent a11213fc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}