summaryrefslogtreecommitdiff
path: root/drivers/bus/fslmc
diff options
context:
space:
mode:
authorShreyansh Jain <shreyansh.jain@nxp.com>2018-01-30 20:36:21 +0530
committerThomas Monjalon <thomas@monjalon.net>2018-01-31 01:36:50 +0100
commit4c00db4bfb04b025a190ba702d83bc18d63cc5ac (patch)
treee5122cb2c97d9c1bb1f5bc312bee836d90f70e14 /drivers/bus/fslmc
parenta1a487f0c9e6af5bdad6361b678c4909159df436 (diff)
downloaddpdk-4c00db4bfb04b025a190ba702d83bc18d63cc5ac.zip
dpdk-4c00db4bfb04b025a190ba702d83bc18d63cc5ac.tar.gz
dpdk-4c00db4bfb04b025a190ba702d83bc18d63cc5ac.tar.xz
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 <shreyansh.jain@nxp.com>
Diffstat (limited to 'drivers/bus/fslmc')
-rw-r--r--drivers/bus/fslmc/fslmc_bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c
index e9acd35..5ee0beb 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;