projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60ee6d5
)
drivers/char/rocket.c: release_region or error path
author
Dan Carpenter
<
[email protected]
>
Wed, 27 Oct 2010 22:34:18 +0000
(15:34 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 28 Oct 2010 01:03:14 +0000
(18:03 -0700)
There was a release_region() missing on the error path.
Signed-off-by: Dan Carpenter <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/char/rocket.c
patch
|
blob
|
history
diff --git
a/drivers/char/rocket.c
b/drivers/char/rocket.c
index 7c79d243acc9b3fac68d6b4062fc9a43bb93eb65..86308830ac42ac450176de5e8b451c686850a3af 100644
(file)
--- a/
drivers/char/rocket.c
+++ b/
drivers/char/rocket.c
@@
-2345,7
+2345,7
@@
static int __init rp_init(void)
ret = tty_register_driver(rocket_driver);
if (ret < 0) {
printk(KERN_ERR "Couldn't install tty RocketPort driver\n");
- goto err_
tty
;
+ goto err_
controller
;
}
#ifdef ROCKET_DEBUG_OPEN
@@
-2380,6
+2380,9
@@
static int __init rp_init(void)
return 0;
err_ttyu:
tty_unregister_driver(rocket_driver);
+err_controller:
+ if (controller)
+ release_region(controller, 4);
err_tty:
put_tty_driver(rocket_driver);
err: