aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorPan Bian <[email protected]>2017-04-24 08:45:51 +0000
committerAlex Deucher <[email protected]>2017-04-28 21:33:02 +0000
commit2f2429c38eddbc4f988589099fd86bb6bb65b7e4 (patch)
tree633c7370d9de1f53a2c4394d8c793f56d863b479 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdrm/radeon: check return value of radeon_ring_lock (diff)
downloadkernel-2f2429c38eddbc4f988589099fd86bb6bb65b7e4.tar.gz
kernel-2f2429c38eddbc4f988589099fd86bb6bb65b7e4.zip
drm/radeon: check return value of radeon_fence_emit
Function radeon_fence_emit() returns -ENOMEM if there is no enough memory. And in this case, function radeon_ring_unlock_undo() rather than function radeon_ring_unlock_commit() should be called. However, in function radeon_test_create_and_emit_fence(), the return value of radeon_fence_emit() is ignored. This patch adds the check. Reviewed-by: Christian König <[email protected]> Signed-off-by: Pan Bian <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions