From: David S. Miller Date: Thu, 8 Jul 2010 01:20:30 +0000 (-0700) Subject: niu: BUG on inability to find page in rx page hashes. X-Git-Tag: MMI-PSA29.97-13-9~23092^2~316 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a038716957d3888a595014a660b1db1f28946f62;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git niu: BUG on inability to find page in rx page hashes. Signed-off-by: David S. Miller --- 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; }