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 <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
This commit is contained in:
parent
8f2112f84c
commit
adab595d16
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user