Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu/vce: Prevent partial address patches

In the case that only one of lo/hi is valid, the patching could result
in a bad address written to in FW.

Signed-off-by: Benjamin Cheng <benjamin.cheng@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org

authored by

Benjamin Cheng and committed by
Alex Deucher
de2a02cc 66085e20

+3
+3
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
··· 680 680 uint64_t addr; 681 681 int r; 682 682 683 + if (lo >= ib->length_dw || hi >= ib->length_dw) 684 + return -EINVAL; 685 + 683 686 if (index == 0xffffffff) 684 687 index = 0; 685 688