[dpdk-dev] [PATCH v3] app/testpmd: fix null pointer dereferencing issue
Ferruh Yigit
ferruh.yigit at intel.com
Fri May 8 17:13:10 CEST 2020
On 5/8/2020 5:50 AM, Kalesh A P wrote:
> From: Kalesh AP <kalesh-anakkur.purayil at broadcom.com>
>
> In cmd_ddp_get_list_parsed(), elements of "p_list" are accessed
> even after the memory allocation for "p_list" fails.
>
> With this patch, this null pointer dereference is avoided as we
> return when there is malloc failure.
>
> Fixes: e088907bb851 ("app/testpmd: add command for getting loaded DDP profiles")
> Cc: stable at dpdk.org
>
> Signed-off-by: Kalesh AP <kalesh-anakkur.purayil at broadcom.com>
> Acked-by: Bernard Iremonger <bernard.iremonger at intel.com>
Applied to dpdk-next-net/master, thanks.
More information about the dev
mailing list