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

Matt Roper matthew.d.roper at intel.com
Wed Mar 19 01:22:46 CET 2014


Build fix for drm-intel-nightly:  there is no 'dev' variable for
TP_fast_assign(); should be vm->dev.

Cc: intel-gfx at lists.freedesktop.org
Signed-off-by: Matt Roper <matthew.d.roper 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.5.1




More information about the Intel-gfx mailing list