On 10/12/2021 9:33 AM, [email protected] wrote:
From: Sunil Kumar Kori <[email protected]>
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: [email protected]
Fixes: 459463ae6c26 ("app/testpmd: fix memory allocation for DSCP table")
Signed-off-by: Sunil Kumar Kori <[email protected]>
Reviewed-by: Ferruh Yigit <[email protected]>
Applied to dpdk-next-net/main, thanks.