From: Shreyansh Jain Date: Tue, 30 Jan 2018 15:06:21 +0000 (+0530) Subject: bus/fslmc: fix DPCI compare in scan X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4c00db4bfb04b025a190ba702d83bc18d63cc5ac;p=dpdk.git bus/fslmc: fix DPCI compare in scan Incorrect string length was being compared while scanning DPCI object. Fixes: 828d51d8fc3e ("bus/fslmc: refactor scan and probe functions") Signed-off-by: Shreyansh Jain --- diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c index e9acd35888..5ee0beb852 100644 --- a/drivers/bus/fslmc/fslmc_bus.c +++ b/drivers/bus/fslmc/fslmc_bus.c @@ -141,7 +141,7 @@ scan_one_fslmc_device(char *dev_name) dev->dev_type = DPAA2_BPOOL; else if (!strncmp("dpio", t_ptr, 4)) dev->dev_type = DPAA2_IO; - else if (!strncmp("dpci", t_ptr, 5)) + else if (!strncmp("dpci", t_ptr, 4)) dev->dev_type = DPAA2_CI; else if (!strncmp("dpmcp", t_ptr, 5)) dev->dev_type = DPAA2_MPORTAL;