net/iucv: fix 2018-03-13
Subsystems (4)
cover net/iucv: fix 2018-03-13
Hi Dave,
please apply one patch for af_iucv, that fixes an error path during initialization.
Thanks,
Julian
Arvind Yadav (1):
net/iucv: Free memory obtained by kzalloc
net/iucv/af_iucv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Signature · 1 line
2.13.5
PATCH 1/1 net/iucv: Free memory obtained by kzalloc
From: Arvind Yadav <[email protected]>
Free memory by calling put_device(), if afiucv_iucv_init is not successful.
Signed-off-by Arvind Yadav <[email protected]>
Reviewed-by Cornelia Huck <[email protected]>
Signed-off-by Ursula Braun <[email protected]>
Signed-off-by Julian Wiedmann <[email protected]>
--- net/iucv/af_iucv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
net/iucv/af_iucv.c +3 -1
@@ -2433,9 +2433,11 @@ static int afiucv_iucv_init(void) af_iucv_dev->driver = &af_iucv_driver; err =device_register (af_iucv_dev);if (err) - goto out_driver; + goto out_iucv_dev;return 0 ; +out_iucv_dev: +put_device (af_iucv_dev); out_driver:driver_unregister (&af_iucv_driver); out_iucv:
Signature · 1 line
2.13.5
Re: [PATCH net 1/1] net/iucv: Free memory obtained by kzalloc
From: Julian Wiedmann <[email protected]>
Date: Tue, 13 Mar 2018 16:50:06 +0100
Quoted 9 lines
From: Arvind Yadav <[email protected]>
Free memory by calling
put_device(), ifafiucv_iucv_initis not successful.Signed-off-by Arvind Yadav <[email protected]>Reviewed-by Cornelia Huck <[email protected]>Signed-off-by Ursula Braun <[email protected]>Signed-off-by Julian Wiedmann <[email protected]>
Applied, thank you.