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

2018-03-01 Thread Ursula Braun
On 03/01/2018 12:31 PM, Arvind Yadav wrote: > Free memory by calling put_device(), if afiucv_iucv_init is not > successful. > > Signed-off-by: Arvind Yadav > --- > changes in v2: > Calling put_device() before kfree(). > changes in v3: > No need to call kfree(). So remo

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

2018-03-01 Thread Cornelia Huck
On Thu, 1 Mar 2018 17:01:57 +0530 Arvind Yadav wrote: > Free memory by calling put_device(), if afiucv_iucv_init is not > successful. > > Signed-off-by: Arvind Yadav > --- > changes in v2: > Calling put_device() before kfree(). > changes in v3: > No need to call kfree