All of lore.kernel.org
 help / color / mirror / Atom feed
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:51 +0000	[thread overview]
Message-ID: <20040410202552.769d25fd.khali@linux-fr.org> (raw)
In-Reply-To: <20040410110533.49ba7483.khali@linux-fr.org>

> Nope, the I2C core calls asb100_detach_client() three times... once
> for the primary client and twice more for the subclients.

Ohhhh OK. Now I get it. It's a bit confusing at first. I'd have expected
two different detach functions (i.e. two different driver structures).
But I agree it works.

> The changes in 2.6 are also on purpose.  They're necessary because the
> I2C client list was implemented differently than in 2.4,  which caused
> it to try to release the subclients twice.

I didn't see much change, except the sysctl_id being gone.

> 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)?

Thanks.

-- 
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/

  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 [this message]
2005-05-19  6:24 ` Mark M. Hoffman
2005-05-19  6:24 ` Mark M. Hoffman
2005-05-19  6:24 ` Jean Delvare

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=20040410202552.769d25fd.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.