Re: [PATCH v2] net: iucv: Free memory obtained by kzalloc
On 03/01/2018 06:25 AM, Arvind Yadav wrote: > Free memory, if afiucv_iucv_init is not successful. So calling > put_device() before kfree(). This will decrement the last reference. > > Signed-off-by: Arvind Yadav> --- > changes in v2: > Calling
[PATCH v2] net: iucv: Free memory obtained by kzalloc
Free memory, if afiucv_iucv_init is not successful. So calling put_device() before kfree(). This will decrement the last reference. Signed-off-by: Arvind Yadav--- changes in v2: Calling put_device() before kfree(). net/iucv/af_iucv.c | 5 - 1 file