Re: [PATCH] Fix guest memory leak and panic
From: Ian Campbell
Date: Wed Oct 19 2011 - 04:55:16 EST
On Tue, 2011-10-18 at 14:20 +0100, Eric Dumazet wrote:
> But I suggest using get_page(pkt_dev->page), this seems more obvious to
> me [ This was how I wrote the thing ;) ]
I guess it depends on whether you consider the reference to be on the
page or to be on the frag (which contains the page). The distinction
would only matter if pktgen were to transition to using the forthcoming
destructors though.
Here's a version like you describe:
8<---------------------------------------------------------------