niu: BUG on inability to find page in rx page hashes.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -3330,10 +3330,12 @@ static struct page *niu_find_rxpage(struct rx_ring_info *rp, u64 addr,
|
|||||||
for (; (p = *pp) != NULL; pp = (struct page **) &p->mapping) {
|
for (; (p = *pp) != NULL; pp = (struct page **) &p->mapping) {
|
||||||
if (p->index == addr) {
|
if (p->index == addr) {
|
||||||
*link = pp;
|
*link = pp;
|
||||||
break;
|
goto found;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
BUG();
|
||||||
|
|
||||||
|
found:
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user