diff options
author | Luca Tettamanti <kronos.it@gmail.com> | 2010-04-08 21:41:59 +0200 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-04-12 09:24:00 -0700 |
commit | ea059a1ec4496a10f94ca9d0c1b530faf1b85dce (patch) | |
tree | 6b0d1b561d31809baa23f277ffefd17caf5e8294 /drivers/gpu/drm/i915 | |
parent | a1f4b7ff23d9698b6556c5030c781caecad8c1e2 (diff) |
drm/i915: do not read uninitialized ->dev_private
->dev_private at that point is NULL and is initialied only a few lines
later.
Signed-off-by: Luca Tettamanti <kronos.it@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index d2daff1f829..75248bedc1c 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -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; |