diff options
author | Pan Bian <bianpan2016@163.com> | 2017-04-24 11:45:51 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-04-29 00:33:02 +0300 |
commit | 2f2429c38eddbc4f988589099fd86bb6bb65b7e4 (patch) | |
tree | 633c7370d9de1f53a2c4394d8c793f56d863b479 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | c346fb74fb646352018800375c327ac35880b7e0 (diff) | |
download | linux-2f2429c38eddbc4f988589099fd86bb6bb65b7e4.tar.xz |
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 <christian.koenig@amd.com>
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions