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

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

parent 05eda04b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
}