summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/seeq
diff options
context:
space:
mode:
authorMaor Gottlieb2017-08-23 16:50:03 +0200
committerSaeed Mahameed2017-09-26 19:52:00 +0200
commit800350a3f145010c353bd7425428c05ac5cfc26a (patch)
treec400118016e92f7c0786483f5295ea78af495026 /drivers/net/ethernet/seeq
parentnet/mlx5: Fix creating a new FTE when an existing but full FTE exists (diff)
downloadkernel-qcow2-linux-800350a3f145010c353bd7425428c05ac5cfc26a.tar.gz
kernel-qcow2-linux-800350a3f145010c353bd7425428c05ac5cfc26a.tar.xz
kernel-qcow2-linux-800350a3f145010c353bd7425428c05ac5cfc26a.zip
net/mlx5: Avoid NULL pointer dereference on steering cleanup
On cleanup, when the node is the last child of parent then it calls to tree_put_node on the parent, if the parent's reference count is decremented to 0 (for e.g. when deleting last destination of FTE) then we free the parent as well and vice versa. In such a case we will try to free the parent node again. Increment the parent reference count before cleaning it's children will prevent implicit release of the parent object. Fixes: 0da2d66666d3 ('net/mlx5: Properly remove all steering objects') signed-off-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/seeq')
0 files changed, 0 insertions, 0 deletions