projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77d2330
)
char: hvc: check for error case
author
Vasiliy Kulikov
<segooon@gmail.com>
Sun, 12 Sep 2010 18:57:14 +0000
(22:57 +0400)
committer
Chris Metcalf
<cmetcalf@tilera.com>
Thu, 14 Oct 2010 18:48:12 +0000
(14:48 -0400)
hvc_alloc() may fail, if so exit from init() with error.
Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
drivers/char/hvc_tile.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/hvc_tile.c
b/drivers/char/hvc_tile.c
index c4efb55cbc03d380fded78b6e5bc61e63406cbcb..7a84a0595477512581b4247f8a0165d775d34aba 100644
(file)
--- a/
drivers/char/hvc_tile.c
+++ b/
drivers/char/hvc_tile.c
@@
-61,7
+61,8
@@
console_initcall(hvc_tile_console_init);
static int __init hvc_tile_init(void)
{
- hvc_alloc(0, 0, &hvc_tile_get_put_ops, 128);
- return 0;
+ struct hvc_struct *s;
+ s = hvc_alloc(0, 0, &hvc_tile_get_put_ops, 128);
+ return IS_ERR(s) ? PTR_ERR(s) : 0;
}
device_initcall(hvc_tile_init);