lkml.org 
[lkml]   [2003]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH][I2C] fix unsafe usage of list_for_each in i2c-core
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/

\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.029 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site