summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-06-20 02:40:32 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-06-20 02:40:32 +0000
commit0564ecfddda1a6038d2af6d315d4f688f997833d (patch)
tree90f361abc1def9bf6807fd9bef7863be0c459cfe /sys
parent2f0c743a2fbe789691f90117b9f87798080a5b54 (diff)
drm/amd/pm: Fix power context allocation in SMU13
From Lijo Lazar 8695a443ad8f38e239b2080f02c4d739d6e33686 in linux-6.1.y/6.1.34 1d13c49cf4e246b218d71873f1bb1bbd376aa10e in mainline linux
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c b/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
index 700c8844895..d829f952560 100644
--- a/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
+++ b/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
@@ -582,11 +582,11 @@ int smu_v13_0_init_power(struct smu_context *smu)
if (smu_power->power_context || smu_power->power_context_size != 0)
return -EINVAL;
- smu_power->power_context = kzalloc(sizeof(struct smu_13_0_dpm_context),
+ smu_power->power_context = kzalloc(sizeof(struct smu_13_0_power_context),
GFP_KERNEL);
if (!smu_power->power_context)
return -ENOMEM;
- smu_power->power_context_size = sizeof(struct smu_13_0_dpm_context);
+ smu_power->power_context_size = sizeof(struct smu_13_0_power_context);
return 0;
}