]> git.hungrycats.org Git - linux/commit
drm/amdgpu/vce: fix allocation size in enc ring test
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Oct 2019 15:36:47 +0000 (11:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2019 08:22:26 +0000 (09:22 +0100)
commit6fb13498c9d971dbcf733d69ea92756e2c7f4764
treebadeb63b68db57d23213a5416a69eacc626dab67
parent5e0b7f4811d296eea55626f349d1eceeb738cec5
drm/amdgpu/vce: fix allocation size in enc ring test

commit ee027828c40faa92a7ef4c2b0641bbb3f4be95d3 upstream.

We need to allocate a large enough buffer for the
feedback buffer, otherwise the IB test can overwrite
other memory.

Reviewed-by: James Zhu <James.Zhu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h