Skip to content

Commit

Permalink
niu: BUG on inability to find page in rx page hashes.
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jul 8, 2010
1 parent 05eda04 commit a038716
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/niu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a038716

Please sign in to comment.