From: Chris Wright <chrisw@osdl.org>
To: greg@kroah.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] class_simple cleanup in misc
Date: Wed, 3 Mar 2004 20:03:13 -0800 [thread overview]
Message-ID: <20040303200312.M21045@build.pdx.osdl.net> (raw)
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;
next reply other threads:[~2004-03-04 4:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-04 4:03 Chris Wright [this message]
2004-03-11 1:29 ` [PATCH] class_simple cleanup in misc Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040303200312.M21045@build.pdx.osdl.net \
--to=chrisw@osdl.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox