⬢ DragonFlyBSD Kernel Audit
DF-4792 / fix.diff
← back to finding ↓ download raw
--- a/sys/dev/drm/amd/powerplay/smumgr/vega20_smumgr.c
+++ b/sys/dev/drm/amd/powerplay/smumgr/vega20_smumgr.c
@@ -161,7 +161,7 @@
  * @param   table_id    the driver's table ID to copy from
  */
 static int vega20_copy_table_from_smc(struct pp_hwmgr *hwmgr,
-				      uint8_t *table, int16_t table_id)
+				      uint8_t *table, uint16_t table_id)
 {
 	struct vega20_smumgr *priv =
 			(struct vega20_smumgr *)(hwmgr->smu_backend);
@@ -201,7 +201,7 @@
  * @param   table_id    the table to copy from
  */
 static int vega20_copy_table_to_smc(struct pp_hwmgr *hwmgr,
-				    uint8_t *table, int16_t table_id)
+				    uint8_t *table, uint16_t table_id)
 {
 	struct vega20_smumgr *priv =
 			(struct vega20_smumgr *)(hwmgr->smu_backend);