i915: do not read uninitialized ->dev_private
Subsystems (2)
PATCH 1/1 i915: do not read uninitialized ->dev_private
->dev_private at that point is NULL and is initialied only a few lines later.
---
I'm beginnig to dive into DRM&KMS, that assignment really confused me :P
drivers/gpu/drm/i915/i915_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_dma.c +1 -1
@@ -1578,7 +1578,7 @@ static void i915_get_mem_freq(struct drm_device *dev)*/ int i915_driver_load (struct drm_device *dev,unsigned long flags) { -struct drm_i915_private *dev_priv = dev->dev_private; +struct drm_i915_private *dev_priv;resource_size_t base, size;int ret =0 , mmio_bar;uint32_t agp_size, prealloc_size, prealloc_start;
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
Eric Anholt
AppliedQuoted 6 lines · Luca Tettamanti
->dev_private at that point is NULL and is initialied only a few lines later.
Signed-off-by Luca Tettamanti <[email protected]>---
I'm beginnig to dive into DRM&KMS, that assignment really confused me :P
Applied. Thanks!
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx