[<prev] [next>] [day] [month] [year] [list]
Message-ID: <543DCD86.30803@acm.org>
Date: Tue, 14 Oct 2014 20:27:34 -0500
From: Corey Minyard <minyard@....org>
To: trenn@...e.de
CC: linux-kernel@...r.kernel.org,
openipmi-developer@...ts.sourceforge.net
Subject: Re: [patch 3/3] ipmi: Unregister previously registered driver in
error case
Queued, thanks for spotting this.
-corey
On 10/14/2014 09:40 AM, trenn@...e.de wrote:
Signed-off-by: Thomas Renninger <trenn@...e.de>
CC: minyard@....org
Index: kernel_ipmi/drivers/char/ipmi/ipmi_msghandler.c
===================================================================
--- kernel_ipmi.orig/drivers/char/ipmi/ipmi_msghandler.c
+++ kernel_ipmi/drivers/char/ipmi/ipmi_msghandler.c
@@ -4545,6 +4545,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;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists