[dpdk-stable] [dpdk-dev] [PATCH] net/mlx5: do not close stdin on error

Raslan Darawsheh rasland at nvidia.com
Mon Nov 1 09:55:42 CET 2021


Hi,

> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of David Marchand
> Sent: Thursday, October 14, 2021 2:37 PM
> To: dev at dpdk.org
> Cc: Dmitry Kozlyuk <dkozlyuk at nvidia.com>; stable at dpdk.org; Matan Azrad
> <matan at nvidia.com>; Slava Ovsiienko <viacheslavo at nvidia.com>;
> Xueming(Steven) Li <xuemingl at nvidia.com>; Jack Min
> <jackmin at nvidia.com>
> Subject: [dpdk-dev] [PATCH] net/mlx5: do not close stdin on error
> 
> If for any reason, a socket could not be opened, mlx5_pmd_socket_init()
> could close the 0 fd (which is valid, and has a fair chance to be stdin), since
> server_socket == 0 from the variable being in .bss.
> 
> Fixes: e6cdc54cc0ef ("net/mlx5: add socket server for external tools")
> Cc: stable at dpdk.org
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---
>  drivers/net/mlx5/linux/mlx5_socket.c | 29 ++++++++++++++--------------
>  1 file changed, 15 insertions(+), 14 deletions(-)

Patch rebased and applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the stable mailing list