diff options
| author | Sagi Grimberg <[email protected]> | 2018-06-25 17:58:17 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2018-06-28 14:29:54 +0000 |
| commit | 682630f00a219a1b0696abe9c0967e660068187b (patch) | |
| tree | 43a225e137266a0943308eca09fdfd62acf6638e /drivers/gpu/drm/amd/amdgpu/amdgpu_test.c | |
| parent | block: Fix transfer when chunk sectors exceeds max (diff) | |
| download | kernel-682630f00a219a1b0696abe9c0967e660068187b.tar.gz kernel-682630f00a219a1b0696abe9c0967e660068187b.zip | |
nvme-rdma: fix possible double free of controller async event buffer
If reconnect/reset failed where the controller async event buffer
was freed, we might end up freeing it again as we call
nvme_rdma_destroy_admin_queue again in the remove path. Given that
the sequence is guaranteed to serialize by .ctrl_stop, we simply
set ctrl->async_event_sqe.data to NULL and don't free it in future
visits.
Reported-by: Max Gurtovoy <[email protected]>
Tested-by: Max Gurtovoy <[email protected]>
Signed-off-by: Sagi Grimberg <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_test.c')
0 files changed, 0 insertions, 0 deletions
