diff --git a/[refs] b/[refs] index 66a91dbfa3f6..807f1d30cfe0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4ab438fcd7373da9e559576e418e890b7cfd94f4 +refs/heads/master: 0c65babd6ce758dd06330b3d9d677b7624f9e3fa diff --git a/trunk/net/core/neighbour.c b/trunk/net/core/neighbour.c index be8b264b29bf..31b6567f0b6a 100644 --- a/trunk/net/core/neighbour.c +++ b/trunk/net/core/neighbour.c @@ -1284,9 +1284,7 @@ static inline struct neigh_parms *lookup_neigh_params(struct neigh_table *tbl, struct neigh_parms *p; for (p = &tbl->parms; p; p = p->next) { - if (p->net != net) - continue; - if ((p->dev && p->dev->ifindex == ifindex) || + if ((p->dev && p->dev->ifindex == ifindex && p->net == net) || (!p->dev && !ifindex)) return p; }