From: Stephen Hemminger <shemminger@osdl.org>
To: Patrick Mochel <mochel@osdl.org>, Greg KH <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] typo in new class_device_release
Date: Thu, 5 Jun 2003 11:26:41 -0700 [thread overview]
Message-ID: <20030605112641.7cb00f93.shemminger@osdl.org> (raw)
There is a typo in the current 2.5.70 bk version of class_device_release that
was not there in my original patch. By confusing the class and the class_device,
the release function oops. cd->release is always the function itself (class_device_release),
cls->release is the one setup for the class (net_class in my case).
diff -Nru a/drivers/base/class.c b/drivers/base/class.c
--- a/drivers/base/class.c Thu Jun 5 11:21:42 2003
+++ b/drivers/base/class.c Thu Jun 5 11:21:42 2003
@@ -191,7 +191,7 @@
pr_debug("device class '%s': release.\n",cd->class_id);
if (cls->release)
- cd->release(cd);
+ cls->release(cd);
}
static struct kobj_type ktype_class_device = {
next reply other threads:[~2003-06-05 18:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-05 18:26 Stephen Hemminger [this message]
2003-06-05 20:05 ` Patrick Mochel
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=20030605112641.7cb00f93.shemminger@osdl.org \
--to=shemminger@osdl.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mochel@osdl.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
all inboxes | Powered by JetHome®