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:
Jiandi An authored and Jan Beulich committed 2016-08-05 13:50:07 +02:00
1 parent c4c0312efa
commit cfcdeea1e6
1 file changed
+1 -1
+1 -1
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.