summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorMark Bloch <markb@mellanox.com>2018-03-20 15:45:37 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-03-21 14:22:22 -0600
commit32927e281c004c352c0b88d2975f5511e5b7cf8e (patch)
treeabfd68e23a43524f34597a6694956c1083f020a5 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parente8980d67d6017c8eee8f9c35f782c4bd68e004c9 (diff)
IB/mlx5: Don't clean uninitialized UMR resources
In case we failed to create UMR resources, mark them as invalid so we won't try to destroy them on the unwind path. Add the relevant checks to destroy_umrc_res(), this is done for the unlikely event ib_register_device() or create_umr_res() err out and we try to destroy invalid objects. Fixes: 42cea83f9524 ("IB/mlx5: Fix cleanup order on unload") Signed-off-by: Mark Bloch <markb@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions