[PATCH 20.11] net/mlx5: do not close stdin on error

Xueming(Steven) Li xuemingl at nvidia.com
Sat Nov 27 15:37:18 CET 2021


On Fri, 2021-11-12 at 09:44 +0100, David Marchand wrote:
> [ upstream commit 7f49dafe0534b8a8614492c052d7fbe2e87dc6ae ]
> 
> 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")
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> Reviewed-by: Dmitry Kozlyuk <dkozlyuk at nvidia.com>
> ---

Applied to 20.11.4 list, thanks!



More information about the stable mailing list