diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-03-22 13:44:56 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-23 13:05:58 -0400 |
commit | 594619497f3d6d4b8d8440e6d380e8da9dcc9eeb (patch) | |
tree | 51d2f3468613ed7f47260ca55400679b9a3522aa /net | |
parent | f145749dd49d00430e1e735656c757a3552dcd4e (diff) | |
download | linux-594619497f3d6d4b8d8440e6d380e8da9dcc9eeb.tar.bz2 |
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: 05564d0ae075 ("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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions