niu: BUG on inability to find page in rx page hashes.
authorDavid S. Miller <davem@davemloft.net>
Thu, 8 Jul 2010 01:20:30 +0000 (18:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Jul 2010 01:20:30 +0000 (18:20 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/niu.c

index 3d523cb7975ac8bb4e847bff1a0521513fc9860d..b9b950845b0e7d480a020f997f6707b89258f13e 100644 (file)
@@ -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;
 }