Re: [PATCH][I2C] fix unsafe usage of list_for_each in i2c-core
Greg KH (greg@kroah.com)
Thu, 5 Jun 2003 12:48:26 -0700
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/