]> git.karo-electronics.de Git - linux-beck.git/commit
drm/amdgpu: remove cgs_acpi_method_argument member method_length
authorNicolai Hähnle <Nicolai.Haehnle@amd.com>
Tue, 14 Jun 2016 10:10:07 +0000 (12:10 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 18:51:32 +0000 (14:51 -0400)
commit8db6f83bef165bc47d1f1cd56afdec37b47917d1
treedbf58a3a206f26b40c6a3e4cf141d55b4b50bd21
parent840dd4c60526e90b298e1ee019ffcdd25a90b780
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
drivers/gpu/drm/amd/include/cgs_common.h