aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorLuben Tuikov <[email protected]>2021-04-13 08:31:59 -0400
committerAlex Deucher <[email protected]>2021-04-15 16:32:44 -0400
commit80b0cd0fb97ec3c02b0f2c4dc26fe3e8be94dc01 (patch)
tree6eef3ca5488d4cfa1245c1584b0398884d9812b8 /tools/perf/scripts/python/stackcollapse.py
parent6cb7a1d40acb2425b9dabb99cdaf522bf47295cb (diff)
drm/amdgpu: Fix a bug in checking the result of reserve page
Fix if (ret) --> if (!ret), a bug, for "retire_page", which caused the kernel to recall the method with *pos == end of file, and that bounced back with error. On the first run, we advanced *pos, but returned 0 back to fs layer, also a bug. Fix the logic of the check of the result of amdgpu_reserve_page_direct()--it is 0 on success, and non-zero on error, not the other way around. This patch fixes this bug. Cc: Alexander Deucher <[email protected]> Cc: John Clements <[email protected]> Cc: Hawking Zhang <[email protected]> Signed-off-by: Luben Tuikov <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions