1
0
Files
linux/drivers
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
..
2018-03-02 10:44:44 +01:00
2018-03-23 09:50:54 +10:00
2018-03-14 15:39:33 -04:00
2018-03-21 11:10:20 +01:00
2018-03-23 13:05:58 -04:00
2018-03-08 10:39:58 -07:00
2018-03-12 15:11:59 +05:30
2018-01-22 16:45:26 +01:00
2018-02-28 13:48:21 +01:00