|
@@ -571,8 +571,11 @@ static int __init mon_init(void)
|
|
if (rc)
|
|
if (rc)
|
|
goto out_iucv;
|
|
goto out_iucv;
|
|
monreader_device = kzalloc(sizeof(struct device), GFP_KERNEL);
|
|
monreader_device = kzalloc(sizeof(struct device), GFP_KERNEL);
|
|
- if (!monreader_device)
|
|
|
|
|
|
+ if (!monreader_device) {
|
|
|
|
+ rc = -ENOMEM;
|
|
goto out_driver;
|
|
goto out_driver;
|
|
|
|
+ }
|
|
|
|
+
|
|
dev_set_name(monreader_device, "monreader-dev");
|
|
dev_set_name(monreader_device, "monreader-dev");
|
|
monreader_device->bus = &iucv_bus;
|
|
monreader_device->bus = &iucv_bus;
|
|
monreader_device->parent = iucv_root;
|
|
monreader_device->parent = iucv_root;
|