From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: subclient leak in asb100 driver
Date: Thu, 19 May 2005 06:24:57 +0000 [thread overview]
Message-ID: <20040509125636.3d85302b.khali@linux-fr.org> (raw)
In-Reply-To: <20040410110533.49ba7483.khali@linux-fr.org>
Hi Mark,
> > I.e. technically, it's the CVS w83781d driver that's wrong...
> > although it happens to be benign vs. 2.4 kernel.
>
> Yes, I see that now. I'm surprised that it doesn't cause more trouble
> than it does. Care to correct the 2.4/CVS driver so that it does what
> your asb100 driver does (i.e. the right thing)?
I took a longer look at the w83781d driver and finally, it doesn't seem
to be broken. It simply relies on the fact that i2c-core will detach the
clients on the same order they were attached. Since the w83781d driver
attached the main client before attaching the subclients, the main
client is detached first. In the callback function, the driver detaches
the subclients "manually" (as opposed to letting i2c-core take care).
When returning from the callback function, the subclients are already
gone, so i2c-core doesn't do anything for them (verified).
So I don't think there's anything that needs fixing here. Let me know if
I missed something.
--
Jean Delvare
http://khali.linux-fr.org/
prev parent reply other threads:[~2005-05-19 6:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:24 subclient leak in asb100 driver Jean Delvare
2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` Mark M. Hoffman
2005-05-19 6:24 ` Mark M. Hoffman
2005-05-19 6:24 ` Jean Delvare [this message]
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=20040509125636.3d85302b.khali@linux-fr.org \
--to=khali@linux-fr.org \
--cc=lm-sensors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.