[PATCH] app/testpmd: fix crash on cleanup

Ferruh Yigit ferruh.yigit at amd.com
Fri Feb 17 17:18:08 CET 2023


On 2/17/2023 7:14 AM, Singh, Aman Deep wrote:
> 
> On 2/6/2023 9:19 PM, David Marchand wrote:
>> If allocating the ports[] array fails, a crash will occur when shutting
>> down testpmd since ethdev emits RTE_ETH_EVENT_DESTROY events.
>> Move init_port() before registering ethdev event handler.
> 
> Looks ok to me. Avoids seg_fault, due to Null pointer access.
> 
>>
>> Fixes: 85c6571c9103 ("app/testpmd: reset port status on close
>> notification")
>> Cc: stable at dpdk.org
>>
>> Signed-off-by: David Marchand <david.marchand at redhat.com>
> 
> Acked-by: Aman Singh <aman.deep.singh at intel.com>
> 

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



More information about the stable mailing list