drm/amdgpu: remove cgs_acpi_method_argument member method_length
It was redundant with data_length, and in fact set incorrectly in one case leading to an out-of-bound read by memcpy in acpi_ut_copy_esimple_to_isimple, reported by CONFIG_KASAN=y. Signed-off-by: Nicolai Hähnle <Nicolai.Haehnle@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:

committed by
Alex Deucher

parent
840dd4c605
commit
8db6f83bef
@@ -189,7 +189,6 @@ typedef unsigned long cgs_handle_t;
|
||||
|
||||
struct cgs_acpi_method_argument {
|
||||
uint32_t type;
|
||||
uint32_t method_length;
|
||||
uint32_t data_length;
|
||||
union{
|
||||
uint32_t value;
|
||||
|
Reference in New Issue
Block a user