mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 10:12:16 +09:00
drm/amd/powerplay: Fix smu_table_entry.handle type
commit adab595d16 upstream.
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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b51521c9a1
commit
dc2b0e41fc
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user