app/eventdev: fix overflow in lcore list parsing
[dpdk.git] / app / test-eventdev / evt_options.c
index 0d55405..061b63e 100644 (file)
@@ -221,7 +221,7 @@ evt_parse_plcores(struct evt_options *opt, const char *corelist)
 {
        int ret;
 
-       ret = parse_lcores_list(opt->plcores, corelist);
+       ret = parse_lcores_list(opt->plcores, RTE_MAX_LCORE, corelist);
        if (ret == -E2BIG)
                evt_err("duplicate lcores in plcores");
 
@@ -233,7 +233,7 @@ evt_parse_work_lcores(struct evt_options *opt, const char *corelist)
 {
        int ret;
 
-       ret = parse_lcores_list(opt->wlcores, corelist);
+       ret = parse_lcores_list(opt->wlcores, RTE_MAX_LCORE, corelist);
        if (ret == -E2BIG)
                evt_err("duplicate lcores in wlcores");