From patchwork Thu Jun 17 01:42:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kenji Kaneshige X-Patchwork-Id: 106590 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5H1hQg9015347 for ; Thu, 17 Jun 2010 01:43:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756256Ab0FQBn0 (ORCPT ); Wed, 16 Jun 2010 21:43:26 -0400 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:47241 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755708Ab0FQBnZ (ORCPT ); Wed, 16 Jun 2010 21:43:25 -0400 Received: from m3.gw.fujitsu.co.jp ([10.0.50.73]) by fgwmail7.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id o5H1hNsb022604 for (envelope-from kaneshige.kenji@jp.fujitsu.com); Thu, 17 Jun 2010 10:43:23 +0900 Received: from smail (m3 [127.0.0.1]) by outgoing.m3.gw.fujitsu.co.jp (Postfix) with ESMTP id 6F92F45DE50 for ; Thu, 17 Jun 2010 10:43:23 +0900 (JST) Received: from s3.gw.fujitsu.co.jp (s3.gw.fujitsu.co.jp [10.0.50.93]) by m3.gw.fujitsu.co.jp (Postfix) with ESMTP id 472F145DE4E for ; Thu, 17 Jun 2010 10:43:23 +0900 (JST) Received: from s3.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s3.gw.fujitsu.co.jp (Postfix) with ESMTP id 1B2C7E08001 for ; Thu, 17 Jun 2010 10:43:23 +0900 (JST) Received: from m108.s.css.fujitsu.com (m108.s.css.fujitsu.com [10.249.87.108]) by s3.gw.fujitsu.co.jp (Postfix) with ESMTP id D38DE1DB803C for ; Thu, 17 Jun 2010 10:43:22 +0900 (JST) Received: from m108.css.fujitsu.com (m108 [127.0.0.1]) by m108.s.css.fujitsu.com (Postfix) with ESMTP id A3B00428057; Thu, 17 Jun 2010 10:43:22 +0900 (JST) Received: from [127.0.0.1] (unknown [10.124.100.137]) by m108.s.css.fujitsu.com (Postfix) with ESMTP id 07B31428052; Thu, 17 Jun 2010 10:43:22 +0900 (JST) X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Received: from KANE-LIFEBOOK[10.124.100.137] by KANE-LIFEBOOK (FujitsuOutboundMailChecker v1.3.1/9992[10.124.100.137]); Thu, 17 Jun 2010 10:42:53 +0900 (JST) Message-ID: <4C197D94.1060407@jp.fujitsu.com> Date: Thu, 17 Jun 2010 10:42:44 +0900 From: Kenji Kaneshige User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: linux-pci@vger.kernel.org, jbarnes@virtuousgeek.org CC: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com Subject: [BUG] PCI: fix wrong memory address handling in MSI-X Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 17 Jun 2010 01:43:26 +0000 (UTC) Index: linux-2.6.34/drivers/pci/msi.c =================================================================== --- linux-2.6.34.orig/drivers/pci/msi.c 2010-06-15 05:33:09.077424885 +0900 +++ linux-2.6.34/drivers/pci/msi.c 2010-06-15 05:33:26.428484041 +0900 @@ -435,7 +435,7 @@ static void __iomem *msix_map_region(struct pci_dev *dev, unsigned pos, unsigned nr_entries) { - unsigned long phys_addr; + resource_size_t phys_addr; u32 table_offset; u8 bir;