From: Patrick McHardy Date: Thu, 15 Apr 2010 11:29:28 +0000 (+0200) Subject: ipv4: ipmr: fix invalid cache resolving when adding a non-matching entry X-Git-Tag: v2.6.35-rc1~473^2~461^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0ebb739a8f68039f03e80b3476b204fe5adf0d7;p=pandora-kernel.git ipv4: ipmr: fix invalid cache resolving when adding a non-matching entry The patch to convert struct mfc_cache to list_heads (ipv4: ipmr: convert struct mfc_cache to struct list_head) introduced a bug when adding new cache entries that don't match any unresolved entries. The unres queue is searched for a matching entry, which is then resolved. When no matching entry is present, the iterator points to the head of the list, but is treated as a matching entry. Use a seperate variable to indicate that a matching entry was found. Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed