git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[S390] proper use of device register
[safe/jmp/linux-2.6]
/
drivers
/
char
/
hvc_iucv.c
diff --git
a/drivers/char/hvc_iucv.c
b/drivers/char/hvc_iucv.c
index
86105ef
..
0ecac7e
100644
(file)
--- 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)
priv->dev->release = (void (*)(struct device *)) kfree;
rc = device_register(priv->dev);
if (rc) {
-
kfre
e(priv->dev);
+
put_devic
e(priv->dev);
goto out_error_dev;
}