diff options
author | Mohammed Anees <pvmohammedanees2003@gmail.com> | 2024-10-09 15:28:31 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-10-15 18:48:05 +0300 |
commit | c0ec082f10b7a1fd25e8c1e2a686440da913b7a3 (patch) | |
tree | e2fb19fefe53aa8a4471b27a771da4b7080fa9c7 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | d2c72d96dff5ba408bb107193b53e3134a516c4b (diff) | |
download | linux-c0ec082f10b7a1fd25e8c1e2a686440da913b7a3.tar.xz |
drm/amdgpu: prevent BO_HANDLES error from being overwritten
Before this patch, if multiple BO_HANDLES chunks were submitted,
the error -EINVAL would be correctly set but could be overwritten
by the return value from amdgpu_cs_p1_bo_handles(). This patch
ensures that if there are multiple BO_HANDLES, we stop.
Fixes: fec5f8e8c6bc ("drm/amdgpu: disallow multiple BO_HANDLES chunks in one submit")
Signed-off-by: Mohammed Anees <pvmohammedanees2003@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 40f2cd98828f454bdc5006ad3d94330a5ea164b7)
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions