Searched hist:b0ebb739a8f68039f03e80b3476b204fe5adf0d7 (Results 1 – 1 of 1) sorted by relevance
/linux/net/ipv4/ |
H A D | ipmr.c | diff b0ebb739a8f68039f03e80b3476b204fe5adf0d7 Thu Apr 15 13:29:28 CEST 2010 Patrick McHardy <kaber@trash.net> 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 <kaber@trash.net>
|