From patchwork Sun Dec 6 09:16:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 65125 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB69HEpd026625 for ; Sun, 6 Dec 2009 09:17:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932527AbZLFJQS (ORCPT ); Sun, 6 Dec 2009 04:16:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932066AbZLFJQJ (ORCPT ); Sun, 6 Dec 2009 04:16:09 -0500 Received: from mgw1.diku.dk ([130.225.96.91]:47567 "EHLO mgw1.diku.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755695AbZLFJQG (ORCPT ); Sun, 6 Dec 2009 04:16:06 -0500 Received: from localhost (localhost [127.0.0.1]) by mgw1.diku.dk (Postfix) with ESMTP id 041C652C390; Sun, 6 Dec 2009 10:16:13 +0100 (CET) X-Virus-Scanned: amavisd-new at diku.dk Received: from mgw1.diku.dk ([127.0.0.1]) by localhost (mgw1.diku.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eGVF+HFAnzWf; Sun, 6 Dec 2009 10:16:11 +0100 (CET) Received: from nhugin.diku.dk (nhugin.diku.dk [130.225.96.140]) by mgw1.diku.dk (Postfix) with ESMTP id B73E852C373; Sun, 6 Dec 2009 10:16:11 +0100 (CET) Received: from ask.diku.dk (ask.diku.dk [130.225.96.225]) by nhugin.diku.dk (Postfix) with ESMTP id BA8586DF823; Sun, 6 Dec 2009 10:12:29 +0100 (CET) Received: by ask.diku.dk (Postfix, from userid 3767) id 9AEDA46B7; Sun, 6 Dec 2009 10:16:11 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by ask.diku.dk (Postfix) with ESMTP id 94DA64632; Sun, 6 Dec 2009 10:16:11 +0100 (CET) Date: Sun, 6 Dec 2009 10:16:11 +0100 (CET) From: Julia Lawall To: Faisal Latif , Chien Tung , Roland Dreier , Sean Hefty , Hal Rosenstock , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH 3/5] drivers/infiniband: correct size computation Message-ID: MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/drivers/infiniband/hw/nes/nes.c b/drivers/infiniband/hw/nes/nes.c index cbde0cf..b8c5372 100644 --- a/drivers/infiniband/hw/nes/nes.c +++ b/drivers/infiniband/hw/nes/nes.c @@ -521,7 +521,8 @@ static int __devinit nes_probe(struct pci_dev *pcidev, const struct pci_device_i spin_lock_init(&nesdev->indexed_regs_lock); /* Remap the PCI registers in adapter BAR0 to kernel VA space */ - mmio_regs = ioremap_nocache(pci_resource_start(pcidev, BAR_0), sizeof(mmio_regs)); + mmio_regs = ioremap_nocache(pci_resource_start(pcidev, BAR_0), + sizeof(*mmio_regs)); if (mmio_regs == NULL) { printk(KERN_ERR PFX "Unable to remap BAR0\n"); ret = -EIO;