diff options
| author | Matthew R. Ochs <[email protected]> | 2015-10-21 15:14:17 -0500 |
|---|---|---|
| committer | James Bottomley <[email protected]> | 2015-10-30 17:15:29 +0900 |
| commit | d804621d0275da84caedcf2d6cf03fbe3c9ac3aa (patch) | |
| tree | 80fb32ab0df611879ce55883125bcf5854b65584 /drivers/gpu/drm/amd/amdgpu/cik.c | |
| parent | 8b5b1e871a736e93e6ef1b048c276975e7421e04 (diff) | |
cxlflash: Fix to prevent workq from accessing freed memory
The workq can process work in parallel with a remove event, leading
to a condition where the workq handler can access freed memory.
To remedy, the workq should be terminated prior to freeing memory. Move
the termination call earlier in remove and use cancel_work_sync() instead
of flush_work() as there is not a need to process any scheduled work when
shutting down.
Signed-off-by: Matthew R. Ochs <[email protected]>
Signed-off-by: Manoj N. Kumar <[email protected]>
Reviewed-by: Brian King <[email protected]>
Reviewed-by: Tomas Henzl <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cik.c')
0 files changed, 0 insertions, 0 deletions