⬢ DragonFlyBSD Kernel Audit
DF-4170 / fix.diff
← back to finding ↓ download raw
--- /home/maxx/dfbsd/dfbsd/sys/dev/drm/amd/powerplay/hwmgr/smu8_hwmgr.c	2026-06-29 12:51:18.000000000 +0000
+++ s8_fix4170.c	2026-09-18 09:49:04.512579596 +0000
@@ -454,6 +454,12 @@
 	if (!hwmgr->need_pp_table_upload)
 		return 0;
 
+	if (!vddc_table || !vdd_gfx_table || !acp_table || !uvd_table ||
+	    !vce_table) {
+		pr_err("smu8: missing clock/voltage dependency table(s) in VBIOS powerplay table!\n");
+		return -EINVAL;
+	}
+
 	ret = smum_download_powerplay_table(hwmgr, &table);
 
 	PP_ASSERT_WITH_CODE((0 == ret && NULL != table),