aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2015-06-07 20:40:12 +0000
committerBen Skeggs <[email protected]>2015-07-27 08:56:09 +0000
commit305c1959ea60ddcae5142a20c50db849a40c2a35 (patch)
treed2e6a8f531cef0ec9432e96e50eeef1041acde96 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentdrm/nouveau/pm: prevent freeing the wrong engine context (diff)
downloadkernel-305c1959ea60ddcae5142a20c50db849a40c2a35.tar.gz
kernel-305c1959ea60ddcae5142a20c50db849a40c2a35.zip
drm/nouveau/pm: fix a potential race condition when creating an engine context
There is always the possiblity that the ppm->context pointer would get partially updated and accidentally would equal ctx. This would allow two contexts to co-exist, which is not acceptable. Moving the test to the critical section takes care of this problem. Signed-off-by: Samuel Pitoiset <[email protected]> Signed-off-by: Martin Peres <[email protected]> Signed-off-by: Ben Skeggs <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions