projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1f4b7f
)
drm/i915: do not read uninitialized ->dev_private
author
Luca Tettamanti
<kronos.it@gmail.com>
Thu, 8 Apr 2010 19:41:59 +0000
(21:41 +0200)
committer
Eric Anholt
<eric@anholt.net>
Mon, 12 Apr 2010 16:24:00 +0000
(09:24 -0700)
->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>
drivers/gpu/drm/i915/i915_dma.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_dma.c
b/drivers/gpu/drm/i915/i915_dma.c
index d2daff1f8291df1a21ee0bad994383ba072e4797..75248bedc1c27c0c7e1bce019e879bd8a0684227 100644
(file)
--- 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;