diff options
author | David S. Miller <davem@davemloft.net> | 2010-07-07 21:20:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-07 21:20:30 -0400 |
commit | a038716957d3888a595014a660b1db1f28946f62 (patch) | |
tree | d3b94615290df41cdc5a6354ba5aa413b362fb05 /drivers/net/niu.c | |
parent | 05eda04ba0b56b1bff3e5c9dbf58213ffc2e2a0b (diff) |
niu: BUG on inability to find page in rx page hashes.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/niu.c')
-rw-r--r-- | drivers/net/niu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 3d523cb7975a..b9b950845b0e 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c | |||
@@ -3330,10 +3330,12 @@ static struct page *niu_find_rxpage(struct rx_ring_info *rp, u64 addr, | |||
3330 | for (; (p = *pp) != NULL; pp = (struct page **) &p->mapping) { | 3330 | for (; (p = *pp) != NULL; pp = (struct page **) &p->mapping) { |
3331 | if (p->index == addr) { | 3331 | if (p->index == addr) { |
3332 | *link = pp; | 3332 | *link = pp; |
3333 | break; | 3333 | goto found; |
3334 | } | 3334 | } |
3335 | } | 3335 | } |
3336 | BUG(); | ||
3336 | 3337 | ||
3338 | found: | ||
3337 | return p; | 3339 | return p; |
3338 | } | 3340 | } |
3339 | 3341 | ||