DragonFlyBSD Kernel Audit
DF-1341 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/drm/radeon/r600_cs.c b/sys/dev/drm/radeon/r600_cs.c
--- a/sys/dev/drm/radeon/r600_cs.c
+++ b/sys/dev/drm/radeon/r600_cs.c
@@ -1580,6 +1580,7 @@
 	if (blevel > llevel) {
 		dev_warn(p->dev, "texture blevel %d > llevel %d\n",
 			 blevel, llevel);
+		return -EINVAL;
 	}
 	if (is_array) {
 		barray = G_038014_BASE_ARRAY(word5);