lkml.org 
[lkml]   [2004]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] class_simple cleanup in misc
Error path doesn't class_simple_destroy.

===== drivers/char/misc.c 1.27 vs edited =====
--- 1.27/drivers/char/misc.c Fri Feb 13 03:15:29 2004
+++ edited/drivers/char/misc.c Wed Mar 3 19:39:51 2004
@@ -342,6 +342,7 @@
if (register_chrdev(MISC_MAJOR,"misc",&misc_fops)) {
printk("unable to get major %d for misc devices\n",
MISC_MAJOR);
+ class_simple_destroy(misc_class);
return -EIO;
}
return 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.039 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site