Re: [PATCH v1] net: stmmac: Free rx_skbufs before realloc

2015-11-26 Thread Giuseppe CAVALLARO
On 11/25/2015 4:13 PM, Giuseppe CAVALLARO wrote: Hello On 11/24/2015 7:09 PM, David Miller wrote: From: Shunqian Zheng Date: Sun, 22 Nov 2015 16:44:18 +0800 From: ZhengShunQian The init_dma_desc_rings() may realloc the rx_skbuff[] when suspend and resume. This patch free the rx_skbuff[] be

Re: [PATCH v1] net: stmmac: Free rx_skbufs before realloc

2015-11-25 Thread Giuseppe CAVALLARO
Hello On 11/24/2015 7:09 PM, David Miller wrote: From: Shunqian Zheng Date: Sun, 22 Nov 2015 16:44:18 +0800 From: ZhengShunQian The init_dma_desc_rings() may realloc the rx_skbuff[] when suspend and resume. This patch free the rx_skbuff[] before reallocing memory. Signed-off-by: ZhengShunQ

Re: [PATCH v1] net: stmmac: Free rx_skbufs before realloc

2015-11-24 Thread David Miller
From: Shunqian Zheng Date: Sun, 22 Nov 2015 16:44:18 +0800 > From: ZhengShunQian > > The init_dma_desc_rings() may realloc the rx_skbuff[] when > suspend and resume. This patch free the rx_skbuff[] before > reallocing memory. > > Signed-off-by: ZhengShunQian This isn't really the right way t

[PATCH v1] net: stmmac: Free rx_skbufs before realloc

2015-11-22 Thread Shunqian Zheng
From: ZhengShunQian The init_dma_desc_rings() may realloc the rx_skbuff[] when suspend and resume. This patch free the rx_skbuff[] before reallocing memory. Signed-off-by: ZhengShunQian --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 18 ++ 1 file changed, 10 insertions