[Intel-gfx] [PATCH] !SQUASH drm/i915: Do not dereference pointers from ring buffer in evict event

Bob Paauwe bob.j.paauwe at intel.com
Wed Mar 19 00:57:00 CET 2014


There isn't a 'dev' variable that can be referenced here.   Use
vm->dev instead.

Signed-off-by: Bob Paauwe <bob.j.paauwe at intel.com>
---
 drivers/gpu/drm/i915/i915_trace.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_trace.h b/drivers/gpu/drm/i915/i915_trace.h
index 93342a4..23c26f1 100644
--- a/drivers/gpu/drm/i915/i915_trace.h
+++ b/drivers/gpu/drm/i915/i915_trace.h
@@ -243,7 +243,7 @@ TRACE_EVENT(i915_gem_evict_vm,
 			    ),
 
 	    TP_fast_assign(
-			   __entry->dev = dev->primary->index;
+			   __entry->dev = vm->dev->primary->index;
 			   __entry->vm = vm;
 			  ),
 
-- 
1.8.3.1




More information about the Intel-gfx mailing list