diff options
author | Yishai Hadas <yishaih@mellanox.com> | 2020-02-12 09:26:32 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-02-13 09:48:17 -0400 |
commit | a8af8694a5e8ddaaef4bd7b6426c12b7759c846c (patch) | |
tree | 695a280aa57708cedd68bdd77c8f5255a85e096a /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | a0767da7774d91a668f9c223cec3e76172cd833b (diff) |
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/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions