From: Andrey Grodzovsky Date: Wed, 17 Jan 2018 22:24:13 +0000 (-0500) Subject: drm/amd/powerplay: Fix smu_table_entry.handle type X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=adab595d16abe48e9c097f000bf8921d35b28fb7;p=openwrt%2Fstaging%2Fblogic.git drm/amd/powerplay: Fix smu_table_entry.handle type The handle describes kernel logical address, should be unsigned long and not uint32_t. Fixes KASAN error and GFP on driver unload. Reviewed-by: Rex Zhu Reviewed-by: Alex Deucher Signed-off-by: Andrey Grodzovsky Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h b/drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h index 58888400f1b8..caebdbebdcd8 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h +++ b/drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h @@ -40,7 +40,7 @@ struct smu_table_entry { uint32_t table_addr_high; uint32_t table_addr_low; uint8_t *table; - uint32_t handle; + unsigned long handle; }; struct smu_table_array {