⬢ DragonFlyBSD Kernel Audit
DF-4605 / fix.diff
← back to finding ↓ download raw
--- a/sys/dev/drm/amd/amdgpu/amdgpu_acpi.c
+++ b/sys/dev/drm/amd/amdgpu/amdgpu_acpi.c
@@ -372,17 +372,10 @@
 	DRM_DEBUG_DRIVER("event, type = %#x\n", type);
 
 	/* Is this actually our event? */
-	if (!atif ||
-	    !atif->notification_cfg.enabled ||
-	    type != atif->notification_cfg.command_code) {
-		/* These events will generate keypresses otherwise */
-#if 0
-               if (event->type == ACPI_VIDEO_NOTIFY_PROBE)
-                       return NOTIFY_BAD;
-		else
-			return NOTIFY_DONE;
-#endif
-	}
+	if (!atif ||
+	    !atif->notification_cfg.enabled ||
+	    type != (UINT32)atif->notification_cfg.command_code)
+		return;
 
 	if (atif->functions.sbios_requests) {
 		struct atif_sbios_requests req;