[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1381625734.3392.26.camel@edumazet-glaptop.roam.corp.google.com>
Date: Sat, 12 Oct 2013 17:55:34 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Michael Dalton <mwdalton@...gle.com>
Cc: Daniel Borkmann <dborkman@...hat.com>, davem@...emloft.net,
netdev@...r.kernel.org, Francesco Fusco <ffusco@...hat.com>,
ycheng@...gle.com, Neal Cardwell <ncardwell@...gle.com>,
Eric Northup <digitaleric@...gle.com>
Subject: Re: [PATCH net-next] net: refactor sk_page_frag_refill()
On Sat, 2013-10-12 at 17:25 -0700, Eric Dumazet wrote:
> - if (pfrag->offset < pfrag->size)
> + if (pfrag->offset + sz < pfrag->size)
> return true;
> put_page(pfrag->page);
This needs to be :
if (pfrag->offset + sz <= pfrag->size)
I'll send a v2
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists