mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-12 03:26:26 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue