public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] gma500: out of bounds read in debug code comma
@ 2014-06-12  7:20 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2014-06-12  7:20 UTC (permalink / raw)
  To: David Airlie, Kirill A. Shutemov; +Cc: kernel-janitors, dri-devel

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.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c b/drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c
index 489ffd2..a3d37e4 100644
--- a/drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c
+++ b/drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c
@@ -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",
 };

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-12  7:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-12  7:20 [patch] gma500: out of bounds read in debug code comma Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox