diff options
Diffstat (limited to 'drivers/s390/char/monreader.c')
-rw-r--r-- | drivers/s390/char/monreader.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/s390/char/monreader.c b/drivers/s390/char/monreader.c index 5b8b8592d311..f4ff515db251 100644 --- a/drivers/s390/char/monreader.c +++ b/drivers/s390/char/monreader.c | |||
@@ -571,8 +571,11 @@ static int __init mon_init(void) | |||
571 | if (rc) | 571 | if (rc) |
572 | goto out_iucv; | 572 | goto out_iucv; |
573 | monreader_device = kzalloc(sizeof(struct device), GFP_KERNEL); | 573 | monreader_device = kzalloc(sizeof(struct device), GFP_KERNEL); |
574 | if (!monreader_device) | 574 | if (!monreader_device) { |
575 | rc = -ENOMEM; | ||
575 | goto out_driver; | 576 | goto out_driver; |
577 | } | ||
578 | |||
576 | dev_set_name(monreader_device, "monreader-dev"); | 579 | dev_set_name(monreader_device, "monreader-dev"); |
577 | monreader_device->bus = &iucv_bus; | 580 | monreader_device->bus = &iucv_bus; |
578 | monreader_device->parent = iucv_root; | 581 | monreader_device->parent = iucv_root; |