artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b65dd5e
)
drm/amd/pm: fix a potential gpu_metrics_table memory leak
author
jsg
<jsg@openbsd.org>
Wed, 22 Dec 2021 12:30:38 +0000
(12:30 +0000)
committer
jsg
<jsg@openbsd.org>
Wed, 22 Dec 2021 12:30:38 +0000
(12:30 +0000)
From Lang Yu
222cebd995cdf11fe0d502749560f65e64990e55
in linux 5.10.y/5.10.88
aa464957f7e660abd554f2546a588f6533720e21
in mainline linux
sys/dev/pci/drm/amd/pm/swsmu/smu12/smu_v12_0.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/pm/swsmu/smu12/smu_v12_0.c
b/sys/dev/pci/drm/amd/pm/swsmu/smu12/smu_v12_0.c
index
9517f15
..
b9e5443
100644
(file)
--- a/
sys/dev/pci/drm/amd/pm/swsmu/smu12/smu_v12_0.c
+++ b/
sys/dev/pci/drm/amd/pm/swsmu/smu12/smu_v12_0.c
@@
-187,6
+187,9
@@
int smu_v12_0_fini_smc_tables(struct smu_context *smu)
kfree(smu_table->watermarks_table);
smu_table->watermarks_table = NULL;
+ kfree(smu_table->gpu_metrics_table);
+ smu_table->gpu_metrics_table = NULL;
+
return 0;
}