DragonFlyBSD Kernel Audit
DF-1513 / fix.diff
← back to finding ↓ download raw
diff --git a/dev/video/vga/vga_switcheroo.c b/dev/video/vga/vga_switcheroo.c
--- a/dev/video/vga/vga_switcheroo.c
+++ b/dev/video/vga/vga_switcheroo.c
@@ -1110,7 +1110,7 @@
 	mutex_lock(&vgasr_mutex);
 
 	if (!vgasr_priv->active) {
-		error = -EINVAL;
+		error = EINVAL;
 		goto out;
 	}