[PATCH] remove invalid reference to list iterator variable

Artem Bityutskiy dedekind1 at gmail.com
Wed Jul 18 09:02:05 EDT 2012


On Sun, 2012-07-08 at 15:19 +0200, Julia Lawall wrote:
> If list_for_each_entry, etc complete a traversal of the list, the iterator
> variable ends up pointing to an address at an offset from the list head,
> and not a meaningful structure.  Thus this value should not be used after
> the end of the iterator.

Thanks Julia - this one is very useful!

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120718/b812e8e1/attachment.sig>


More information about the linux-mtd mailing list