21170421 PANIC - BAD TRAP in module "i915" s11u3_25
authorrfishel <randy.fishel@oracle.com>
Tue, 09 Jun 2015 21:02:14 -0700
changeset 1471 8b3b2378acb0
parent 1470 35e403ef18ff
child 1472 aa55d8594b1c
21170421 PANIC - BAD TRAP in module "i915"
open-src/kernel/i915/src/i915_gem_context.c
--- a/open-src/kernel/i915/src/i915_gem_context.c	Wed Nov 05 07:58:34 2014 -0800
+++ b/open-src/kernel/i915/src/i915_gem_context.c	Tue Jun 09 21:02:14 2015 -0700
@@ -30,7 +30,7 @@
  */
 
 /*
- * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
  */
 
 /*
@@ -291,7 +291,7 @@
 	struct drm_i915_private *dev_priv = dev->dev_private;
 	struct i915_hw_context *dctx = dev_priv->ring[RCS].default_context;
 
-	if (dev_priv->hw_contexts_disabled)
+	if (dev_priv->hw_contexts_disabled || dctx == NULL)
 		return;
 
 	/* The only known way to stop the gpu from accessing the hw context is