Skip to contentSkip to conversation

net/iucv: fix 2018-03-13

PATCH Applied Julian Wiedmann 2 participants 3 messages Mar 13, 2018 – Mar 16, 2018

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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.

---
 net/iucv/af_iucv.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
net/iucv/af_iucv.c +3 -1
index 1e8cc7bcbca3..9e2643ab4ccb 100644
@@ -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
maintainer Applied
#2 lore raw

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(), if afiucv_iucv_init is not successful.

Applied, thank you.