[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20151205.174934.1926276723353475569.davem@davemloft.net>
Date: Sat, 05 Dec 2015 17:49:34 -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: Fri, 4 Dec 2015 07:21:06 +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>
Applied, thanks.
--
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