aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorAditya Pakki <pakki001@umn.edu>2019-03-19 16:42:40 -0500
committerSaeed Mahameed <saeedm@mellanox.com>2019-03-29 12:24:41 -0700
commit8e949363f017e2011464812a714fb29710fb95b4 (patch)
tree4105234bde7ecea83d628db37f946a12e32bb4e9 /include
parentnet/mlx5e: Allow IPv4 ttl & IPv6 hop_limit rewrite for all L4 protocols (diff)
downloadwireguard-linux-8e949363f017e2011464812a714fb29710fb95b4.tar.xz
wireguard-linux-8e949363f017e2011464812a714fb29710fb95b4.zip
net: mlx5: Add a missing check on idr_find, free buf
idr_find() can return a NULL value to 'flow' which is used without a check. The patch adds a check to avoid potential NULL pointer dereference. In case of mlx5_fpga_sbu_conn_sendmsg() failure, free buf allocated using kzalloc. Fixes: ab412e1dd7db ("net/mlx5: Accel, add TLS rx offload routines") Signed-off-by: Aditya Pakki <pakki001@umn.edu> Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions