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

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

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

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

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

2018-03-01 Thread Arvind Yadav
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 removed kfree(). net/iucv/af_iucv.c |

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

2018-03-01 Thread Arvind Yadav
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 removed kfree(). net/iucv/af_iucv.c | 4 +++- 1 file changed, 3