aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/atombios_i2c.c
diff options
context:
space:
mode:
authorMatthew R. Ochs <[email protected]>2015-10-21 15:14:17 -0500
committerJames Bottomley <[email protected]>2015-10-30 17:15:29 +0900
commitd804621d0275da84caedcf2d6cf03fbe3c9ac3aa (patch)
tree80fb32ab0df611879ce55883125bcf5854b65584 /drivers/gpu/drm/amd/amdgpu/atombios_i2c.c
parent8b5b1e871a736e93e6ef1b048c276975e7421e04 (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/atombios_i2c.c')
0 files changed, 0 insertions, 0 deletions