Skip to content

Commit

Permalink
drm/i915: do not read uninitialized ->dev_private
Browse files Browse the repository at this point in the history
->dev_private at that point is NULL and is initialied only a few lines
later.

Signed-off-by: Luca Tettamanti <[email protected]>
Signed-off-by: Eric Anholt <[email protected]>
  • Loading branch information
tettamanti authored and anholt committed Apr 12, 2010
1 parent a1f4b7f commit ea059a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/i915_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ea059a1

Please sign in to comment.