Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adab595d authored by Andrey Grodzovsky's avatar Andrey Grodzovsky Committed by Alex Deucher
Browse files

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: default avatarRex Zhu <Rex.Zhu@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent 8f2112f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {