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

Greg KH gregkh at linuxfoundation.org
Thu Oct 27 13:10:47 UTC 2016


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
> allocated memory when kmalloc fails.
> 
> Signed-off-by: Souptick joarder <jrdr.linux at gmail.com>
> ---
> Changes in v2:
>  -Make the commit message more cleaner.

I'll be pedantic here, but please always put a ' ' after a '.' or a ','
It's the copy-editor in me coming out...

You couldn't do something like that on a term-paper and expect to not
get it marked down, right?

another try?

thanks,

greg k-h


More information about the devel mailing list