Commit a0387169 authored by David S. Miller's avatar David S. Miller

niu: BUG on inability to find page in rx page hashes.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 05eda04b
......@@ -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) {
if (p->index == addr) {
*link = pp;
break;
goto found;
}
}
BUG();
found:
return p;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment