On 10/12/2021 9:33 AM, sk...@marvell.com wrote:
From: Sunil Kumar Kori <sk...@marvell.com>

During parsing of DSCP entries, memory is allocated and assigned
to *dscp_table. Later on, same memory is accessed using
*dscp_table[i++].

Due to higher precedence for array subscript, dscp_table[i++] will
be executed first which actually does not point to the same memory
which was allocated previously for DSCP table entries.


Of course, thanks for the fix.

Cc: sta...@dpdk.org

Fixes: 459463ae6c26 ("app/testpmd: fix memory allocation for DSCP table")

Signed-off-by: Sunil Kumar Kori <sk...@marvell.com>

Reviewed-by: Ferruh Yigit <ferruh.yi...@intel.com>

Applied to dpdk-next-net/main, thanks.

Reply via email to