[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20151130.145417.1897547211679159596.davem@davemloft.net>
Date: Mon, 30 Nov 2015 14:54:17 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: peppe.cavallaro@...com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH (net.git)] stmmac: fix resource management when resume
From: Giuseppe Cavallaro <peppe.cavallaro@...com>
Date: Thu, 26 Nov 2015 11:32:04 +0100
> There is a memleak when suspend/resume this driver version.
> Currently the stmmac, during resume step, reallocates all the resources
> but they are not released when suspend.
> The patch is not to release these resources but the logic has been changed.
> In fact, it is not necessary to free and reallocate all from scratch
> because the memory data will be always preserved.
> As final solution, the patch just reinit the descriptors and the rx/tx
> pointers only when resume. Tested done on STi boxes.
>
> Reported-by: ZhengShunQian <zhengsq@...k-chips.com>
> Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@...com>
This doesn't apply to the 'net' tree.
--
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