projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b88429a
)
serial: fix incorrect length of strncmp for dtuart
author
Jiandi An
<anjiandi@codeaurora.org>
Wed, 8 Jun 2016 09:10:23 +0000
(11:10 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Wed, 8 Jun 2016 09:10:23 +0000
(11:10 +0200)
In serial_parse_handler(), length of strncmp for dtuart should have been
6, not 5.
Signed-off-by: Jiandi An <anjiandi@codeaurora.org>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/drivers/char/serial.c
patch
|
blob
|
history
diff --git
a/xen/drivers/char/serial.c
b/xen/drivers/char/serial.c
index c583a48c0823e7bf2619a1a63f05da3bfbd20e3d..0fc5cedfc39fd5d19a329a65bbe6dd38b2abb158 100644
(file)
--- a/
xen/drivers/char/serial.c
+++ b/
xen/drivers/char/serial.c
@@
-310,7
+310,7
@@
int __init serial_parse_handle(char *conf)
goto common;
}
- if ( !strncmp(conf, "dtuart",
5
) )
+ if ( !strncmp(conf, "dtuart",
6
) )
{
handle = SERHND_DTUART;
goto common;