Re: [PATCH v2] staging : rtl8712: Free memory when kmalloc fails

2016-10-27 Thread Souptick Joarder
On Thu, Oct 27, 2016 at 6:40 PM, Greg KH wrote: > On Thu, Oct 27, 2016 at 01:46:13PM +0530, Souptick Joarder wrote: >> There are few functions where we need to free previously allocated memory >> when kmalloc fails.Else it may lead to memory leakage.In _init_cmd_priv() >> and _r8712_init_xmit_pri

Re: [PATCH v2] staging : rtl8712: Free memory when kmalloc fails

2016-10-27 Thread Greg KH
On Thu, Oct 27, 2016 at 01:46:13PM +0530, Souptick Joarder wrote: > There are few functions where we need to free previously allocated memory > when kmalloc fails.Else it may lead to memory leakage.In _init_cmd_priv() > and _r8712_init_xmit_priv(),in few places we are not freeing previously > allo

[PATCH v2] staging : rtl8712: Free memory when kmalloc fails

2016-10-27 Thread Souptick Joarder
There are few functions where we need to free previously allocated memory when kmalloc fails.Else it may lead to memory leakage.In _init_cmd_priv() and _r8712_init_xmit_priv(),in few places we are not freeing previously allocated memory when kmalloc fails. Signed-off-by: Souptick joarder --- Cha