aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/main.c
diff options
context:
space:
mode:
authorYishai Hadas <yishaih@mellanox.com>2020-02-12 09:26:32 +0200
committerJason Gunthorpe <jgg@mellanox.com>2020-02-13 09:48:17 -0400
commita8af8694a5e8ddaaef4bd7b6426c12b7759c846c (patch)
tree695a280aa57708cedd68bdd77c8f5255a85e096a /drivers/infiniband/hw/mlx5/main.c
parentRDMA/core: Add missing list deletion on freeing event queue (diff)
downloadlinux-dev-a8af8694a5e8ddaaef4bd7b6426c12b7759c846c.tar.xz
linux-dev-a8af8694a5e8ddaaef4bd7b6426c12b7759c846c.zip
RDMA/mlx5: Fix async events cleanup flows
As in the prior patch, the devx code is not fully cleaning up its event_lists before finishing driver_destroy allowing a later read to trigger user after free conditions. Re-arrange things so that the event_list is always empty after destroy and ensure it remains empty until the file is closed. Fixes: f7c8416ccea5 ("RDMA/core: Simplify destruction of FD uobjects") Link: https://lore.kernel.org/r/20200212072635.682689-7-leon@kernel.org Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/main.c')
0 files changed, 0 insertions, 0 deletions