From: Greg KH <greg@kroah.com>
To: Andreas Schultz <aschultz@warp10.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH][I2C] fix unsafe usage of list_for_each in i2c-core
Date: Thu, 5 Jun 2003 12:48:26 -0700 [thread overview]
Message-ID: <20030605194826.GB6238@kroah.com> (raw)
In-Reply-To: <200306052048.21409.aschultz@warp10.net>
On Thu, Jun 05, 2003 at 08:48:21PM +0200, Andreas Schultz wrote:
> Hi,
>
> i2c-core.c contains 2 loops that iterate over the list of the clients attached
> to an adapter and detaches them. Detaching the clients will actually remove
> them from the list the loop is iterating over. Therefore the
> list_for_each_safe() method has to be used.
Ah, nice catch. Applied, thanks.
I'm guessing this fixes your other i2c problems you were having?
thanks,
greg k-h
prev parent reply other threads:[~2003-06-05 20:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-05 18:48 Andreas Schultz
2003-06-05 19:48 ` Greg KH [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=20030605194826.GB6238@kroah.com \
--to=greg@kroah.com \
--cc=aschultz@warp10.net \
--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
all inboxes | Powered by JetHome®