commit | a038716957d3888a595014a660b1db1f28946f62 | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@davemloft.net> | Wed Jul 07 18:20:30 2010 -0700 |
committer | David S. Miller <davem@davemloft.net> | Wed Jul 07 18:20:30 2010 -0700 |
tree | d3b94615290df41cdc5a6354ba5aa413b362fb05 | |
parent | 05eda04ba0b56b1bff3e5c9dbf58213ffc2e2a0b [diff] |
niu: BUG on inability to find page in rx page hashes. Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 3d523cb..b9b9508 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c
@@ -3330,10 +3330,12 @@ for (; (p = *pp) != NULL; pp = (struct page **) &p->mapping) { if (p->index == addr) { *link = pp; - break; + goto found; } } + BUG(); +found: return p; }