⬢ DragonFlyBSD Kernel Audit
DF-4768 / fix.diff
← back to finding ↓ download raw
--- psp.orig2	2026-09-23 11:51:37.404179458 +0000
+++ psp.fixed2	2026-09-23 11:51:37.420179248 +0000
@@ -135,7 +135,7 @@
 	}
 
 	/* the status field must be 0 after FW is loaded */
-	if (ucode && psp->cmd_buf_mem->resp.status) {
+	if (psp->cmd_buf_mem->resp.status) {
 		DRM_ERROR("failed loading with status (%d) and ucode id (%d)\n",
 			  psp->cmd_buf_mem->resp.status, ucode->ucode_id);
 		return -EINVAL;