projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bcc327
)
serial: mcf: missing uart_unregister_driver() on error in mcf_init()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Thu, 25 Apr 2013 01:17:23 +0000
(09:17 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 20 May 2013 18:54:56 +0000
(11:54 -0700)
Add the missing uart_unregister_driver() before return
from mcf_init() in the error handling case.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mcf.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/mcf.c
b/drivers/tty/serial/mcf.c
index
e956377
..
65be0c0
100644
(file)
--- a/
drivers/tty/serial/mcf.c
+++ b/
drivers/tty/serial/mcf.c
@@
-707,8
+707,10
@@
static int __init mcf_init(void)
if (rc)
return rc;
rc = platform_driver_register(&mcf_platform_driver);
- if (rc)
+ if (rc) {
+ uart_unregister_driver(&mcf_driver);
return rc;
+ }
return 0;
}