DragonFlyBSD Kernel Audit
DF-1909 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/drm/amd/amdgpu/amdgpu_acp.c b/sys/dev/drm/amd/amdgpu/amdgpu_acp.c
--- a/sys/dev/drm/amd/amdgpu/amdgpu_acp.c
+++ b/sys/dev/drm/amd/amdgpu/amdgpu_acp.c
@@ -460,7 +460,9 @@
 
 	mfd_remove_devices(adev->acp.parent);
 	kfree(adev->acp.acp_res);
+	adev->acp.acp_genpd->gpd.name = NULL;
 	kfree(adev->acp.acp_genpd);
+	adev->acp.acp_genpd = NULL;
 	kfree(adev->acp.acp_cell);
 
 	return 0;