Re: [PATCH v2] net: iucv: Free memory obtained by kzalloc

2018-03-01 Thread Ursula Braun
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 put_device() before kfree(). > > ne

[PATCH v2] net: iucv: Free memory obtained by kzalloc

2018-02-28 Thread Arvind Yadav
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 changed, 4 insertions(+), 1 d