All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915: [dinq] Fix six instances of -Warray-bounds
@ 2012-02-15 13:42 Ben Widawsky
  2012-02-15 13:42 ` [PATCH 2/2] drm/i915: [dinq] fix two instances -Wunitialized Ben Widawsky
  2012-02-15 13:57 ` [PATCH 1/2] drm/i915: [dinq] Fix six instances of -Warray-bounds Daniel Vetter
  0 siblings, 2 replies; 6+ messages in thread
From: Ben Widawsky @ 2012-02-15 13:42 UTC (permalink / raw)
  To: intel-gfx; +Cc: Daniel Vetter, Ben Widawsky

Introduced in commits c1cd90ed and d27b1e0e

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
---
 drivers/gpu/drm/i915/i915_debugfs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index ae73288..9f1fb33 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -704,6 +704,7 @@ static void i915_ring_error_state(struct seq_file *m,
 				  struct drm_i915_error_state *error,
 				  unsigned ring)
 {
+	BUG_ON(ring > VCS);
 	seq_printf(m, "%s command stream:\n", ring_str(ring));
 	seq_printf(m, "  HEAD: 0x%08x\n", error->head[ring]);
 	seq_printf(m, "  TAIL: 0x%08x\n", error->tail[ring]);
-- 
1.7.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-03-22 16:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-15 13:42 [PATCH 1/2] drm/i915: [dinq] Fix six instances of -Warray-bounds Ben Widawsky
2012-02-15 13:42 ` [PATCH 2/2] drm/i915: [dinq] fix two instances -Wunitialized Ben Widawsky
2012-02-15 13:51   ` Chris Wilson
2012-02-15 13:55     ` Ben Widawsky
2012-03-22 16:53   ` Daniel Vetter
2012-02-15 13:57 ` [PATCH 1/2] drm/i915: [dinq] Fix six instances of -Warray-bounds Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.