diff options
-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, for (; (p = *pp) != NULL; pp = (struct page **) &p->mapping) { if (p->index == addr) { *link = pp; - break; + goto found; } } + BUG(); +found: return p; } |