From patchwork Thu Apr 8 19:41:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Tettamanti X-Patchwork-Id: 91496 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o38JiiKJ030659 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 8 Apr 2010 19:45:20 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1Nzxc8-00077O-Oe; Thu, 08 Apr 2010 19:42:08 +0000 Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.124] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1Nzxc6-00077D-M8 for dri-devel@lists.sourceforge.net; Thu, 08 Apr 2010 19:42:06 +0000 Received-SPF: pass (sfi-mx-4.v28.ch3.sourceforge.com: domain of gmail.com designates 209.85.220.221 as permitted sender) client-ip=209.85.220.221; envelope-from=kronos.it@gmail.com; helo=mail-fx0-f221.google.com; Received: from mail-fx0-f221.google.com ([209.85.220.221]) by sfi-mx-4.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1Nzxc5-00075H-QY for dri-devel@lists.sourceforge.net; Thu, 08 Apr 2010 19:42:06 +0000 Received: by mail-fx0-f221.google.com with SMTP id 21so1779878fxm.2 for ; Thu, 08 Apr 2010 12:42:05 -0700 (PDT) Received: by 10.223.7.76 with SMTP id c12mr617577fac.42.1270755725163; Thu, 08 Apr 2010 12:42:05 -0700 (PDT) Received: from nb-core2.darkstar.lan (dynamic-adsl-78-14-224-187.clienti.tiscali.it [78.14.224.187]) by mx.google.com with ESMTPS id y15sm982975fkd.38.2010.04.08.12.42.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 08 Apr 2010 12:42:04 -0700 (PDT) Date: Thu, 8 Apr 2010 21:41:59 +0200 From: Luca Tettamanti To: intel-gfx@lists.freedesktop.org Subject: [PATCH] i915: do not read uninitialized ->dev_private Message-ID: <20100408194159.GA5092@nb-core2.darkstar.lan> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record -0.0 DKIM_VERIFIED Domain Keys Identified Mail: signature passes verification 0.0 DKIM_SIGNED Domain Keys Identified Mail: message has a signature X-Headers-End: 1Nzxc5-00075H-QY Cc: dri-devel@lists.sourceforge.net X-BeenThere: dri-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 08 Apr 2010 19:45:20 +0000 (UTC) diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index a9f8589..648670d 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;