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

2016-10-27 Thread Greg KH
On Thu, Oct 27, 2016 at 01:00:01PM +0530, Souptick Joarder wrote: > On Thu, Oct 27, 2016 at 11:20 AM, Greg KH wrote: > > On Thu, Oct 27, 2016 at 11:10:09AM +0530, Souptick Joarder wrote: > >> There are few functions where we need to free previously allocated memory > >> when kmalloc fails. Else it

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

2016-10-27 Thread Souptick Joarder
On Thu, Oct 27, 2016 at 11:20 AM, Greg KH wrote: > On Thu, Oct 27, 2016 at 11:10:09AM +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_

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

2016-10-26 Thread Greg KH
On Thu, Oct 27, 2016 at 11:10:09AM +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] staging : rtl8712: Free memory when kmalloc fails

2016-10-26 Thread Souptick Joarder
On Wed, Oct 26, 2016 at 12:39 PM, Greg KH wrote: > On Wed, Oct 26, 2016 at 12:30:26PM +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_

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

2016-10-26 Thread Greg KH
On Wed, Oct 26, 2016 at 12:30:26PM +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