diff options
author | 2018-03-22 13:44:56 -0500 | |
---|---|---|
committer | 2018-03-23 13:05:58 -0400 | |
commit | 594619497f3d6d4b8d8440e6d380e8da9dcc9eeb (patch) | |
tree | 51d2f3468613ed7f47260ca55400679b9a3522aa /net/tipc/addr.c | |
parent | Merge branch 'pernet-convert-part11' (diff) | |
download | wireguard-linux-594619497f3d6d4b8d8440e6d380e8da9dcc9eeb.tar.xz wireguard-linux-594619497f3d6d4b8d8440e6d380e8da9dcc9eeb.zip |
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/tipc/addr.c')
0 files changed, 0 insertions, 0 deletions