mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
serial: fix incorrect length of strncmp for dtuart
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>
master commit: ba98196b54
master date: 2016-06-08 11:10:23 +0200
This commit is contained in:
1 parent
c4c0312efa
commit
cfcdeea1e6
1 file changed
+1
-1
@@ -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;
|
||||
|
||||