[dpdk-dev] [PATCH v1 3/3] net/failsafe: fix default service proxy state

Ali Alnubani alialnu at mellanox.com
Wed May 6 10:58:23 CEST 2020


Thanks Gaetan.

> -----Original Message-----
> From: Gaetan Rivet <grive at u256.net>
> Sent: Tuesday, May 5, 2020 10:11 PM
> To: dev at dpdk.org
> Cc: wangyunjian at huawei.com; Ali Alnubani <alialnu at mellanox.com>
> Subject: [PATCH v1 3/3] net/failsafe: fix default service proxy state
> 
> The service proxy is initialized at 0. This is assuming that all of its fields are
> invalid at 0. The issue is that a file descriptor at 0 is a valid one.
> 
> The value -1 is used as sentinel during cleanup. Initialize the RX proxy file
> descriptor to -1.
> 
> Fixes: 366226dd859f ("net/failsafe: fix fd leak")
> Signed-off-by: Gaetan Rivet <grive at u256.net>
> Cc: wangyunjian at huawei.com
> Cc: Ali Alnubani <alialnu at mellanox.com>

Tested-by: Ali Alnubani <alialnu at mellanox.com>


More information about the dev mailing list