Files
linux-stable-mirror/drivers/gpu/drm
Mohammed AneesandGreg Kroah-Hartman dc79c24e58 drm/amdgpu: prevent BO_HANDLES error from being overwritten
commit c0ec082f10 upstream.

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: fec5f8e8c6 ("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 40f2cd9882)
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-10-22 15:56:46 +02:00
..
2024-04-17 11:18:27 +02:00
2024-10-17 15:20:54 +02:00
2024-08-03 08:49:14 +02:00
2024-01-25 15:27:32 -08:00
2024-03-06 14:45:10 +00:00