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

2016-10-31 Thread Souptick Joarder
H Greg, On Mon, Oct 31, 2016 at 3:37 PM, Greg KH wrote: > On Mon, Oct 31, 2016 at 02:32:39PM +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_ini

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

2016-10-31 Thread Greg KH
On Mon, Oct 31, 2016 at 02:32:39PM +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 al

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

2016-10-31 Thread Greg KH
On Mon, Oct 31, 2016 at 01:08:07PM +0530, Souptick Joarder wrote: > On Sun, Oct 30, 2016 at 8:41 PM, Greg KH wrote: > > On Fri, Oct 28, 2016 at 10:37:53AM +0530, Souptick Joarder wrote: > >> There are few functions where we need to free previously allocated memory > >> when kmalloc fails. Else it

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

2016-10-31 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 --- v

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

2016-10-31 Thread Souptick Joarder
On Sun, Oct 30, 2016 at 8:41 PM, Greg KH wrote: > On Fri, Oct 28, 2016 at 10:37:53AM +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_p

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

2016-10-30 Thread Greg KH
On Fri, Oct 28, 2016 at 10:37:53AM +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 > a

[PATCH v3] 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 ---