Skip to contentSkip to conversation

gma500: out of bounds read in debug code comma

PATCH New Dan Carpenter 1 participant 1 message Jun 12, 2014

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gma500: out of bounds read in debug code comma

The code assume that this array has 32 elements but because of a missing comma, then it only has 31. This array is only used when error occurs and debugging is enabled so it's not very serious.

drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c +1 -1
index 489ffd2..a3d37e4 100644
@@ -85,7 +85,7 @@ static const char *const dsi_errors[] = {
 	"RX Prot Violation",
 	"HS Generic Write FIFO Full",
 	"LP Generic Write FIFO Full",
-	"Generic Read Data Avail"
+	"Generic Read Data Avail",
 	"Special Packet Sent",
 	"Tearing Effect",
 };