From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757927Ab2GMVJg (ORCPT ); Fri, 13 Jul 2012 17:09:36 -0400 Received: from cantor2.suse.de ([195.135.220.15]:42080 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755412Ab2GMVJf (ORCPT ); Fri, 13 Jul 2012 17:09:35 -0400 Message-ID: <50008E89.1050006@suse.cz> Date: Fri, 13 Jul 2012 23:09:29 +0200 From: Michal Marek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111220 Thunderbird/9.0 MIME-Version: 1.0 To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, Gilles Muller , Nicolas Palix , cocci@diku.dk, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scripts/coccinelle/iterators/use_after_iter.cocci: list iterator variable semantic patch References: <1341866451-24290-1-git-send-email-Julia.Lawall@lip6.fr> In-Reply-To: <1341866451-24290-1-git-send-email-Julia.Lawall@lip6.fr> Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dne 9.7.2012 22:40, Julia Lawall napsal(a): > From: Julia Lawall > > 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. Applied to kbuild.git#misc, thanks. Michal