diff options
Diffstat (limited to 'drivers/char/hvc_iucv.c')
-rw-r--r-- | drivers/char/hvc_iucv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hvc_iucv.c b/drivers/char/hvc_iucv.c index 86105efb4eb6..0ecac7e532f6 100644 --- a/drivers/char/hvc_iucv.c +++ b/drivers/char/hvc_iucv.c | |||
@@ -1006,7 +1006,7 @@ static int __init hvc_iucv_alloc(int id, unsigned int is_console) | |||
1006 | priv->dev->release = (void (*)(struct device *)) kfree; | 1006 | priv->dev->release = (void (*)(struct device *)) kfree; |
1007 | rc = device_register(priv->dev); | 1007 | rc = device_register(priv->dev); |
1008 | if (rc) { | 1008 | if (rc) { |
1009 | kfree(priv->dev); | 1009 | put_device(priv->dev); |
1010 | goto out_error_dev; | 1010 | goto out_error_dev; |
1011 | } | 1011 | } |
1012 | 1012 | ||