linux_dsm_epyc7002/drivers/net/ethernet/mellanox
Gustavo A. R. Silva 594619497f net/mlx5: Fix use-after-free
_rule_ is being freed and then dereferenced by accessing rule->ctx

Fix this by copying the value returned by PTR_ERR(rule->ctx) into a local
variable for its safe use after freeing _rule_

Addresses-Coverity-ID: 1466041 ("Read from pointer after free")
Fixes: 05564d0ae0 ("net/mlx5: Add flow-steering commands for FPGA IPSec implementation")
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-03-23 13:05:58 -04:00
..
mlx4 net/mlx4_en: try to use high order pages for RX rings 2018-03-07 13:35:23 -05:00
mlx5/core net/mlx5: Fix use-after-free 2018-03-23 13:05:58 -04:00
mlxfw
mlxsw mlxsw: spectrum_span: Fix initialization of struct mlxsw_sp_span_parms 2018-03-23 12:59:26 -04:00
Kconfig
Makefile