lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 27 Oct 2008 12:44:59 -0700
From:	<gregkh@...e.de>
To:	arjan@...ux.intel.com, arjan@...radead.org, gregkh@...e.de,
	hjk@...utronix.de, linux-kernel@...r.kernel.org
Subject: patch uio-use-pci_ioremap_bar-in-drivers-uio.patch added to gregkh-2.6 tree


This is a note to let you know that I've just added the patch titled

    Subject: UIO: use pci_ioremap_bar() in drivers/uio

to my gregkh-2.6 tree.  Its filename is

    uio-use-pci_ioremap_bar-in-drivers-uio.patch

This tree can be found at 
    http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/


>From hjk@...utronix.de  Mon Oct 27 11:23:22 2008
From: Arjan van de Ven <arjan@...ux.intel.com>
Date: Tue, 21 Oct 2008 11:17:51 +0200
Subject: UIO: use pci_ioremap_bar() in drivers/uio
To: Arjan van de Ven <arjan@...radead.org>
Cc: hjk@...utronix.de, tglx@...x.de, Greg KH <gregkh@...e.de>, LKML <linux-kernel@...r.kernel.org>
Message-ID: <20081021091750.GA2966@...al>
Content-Disposition: inline

From: Arjan van de Ven <arjan@...ux.intel.com>

Use the newly introduced pci_ioremap_bar() function in drivers/uio.
pci_ioremap_bar() just takes a pci device and a bar number, with the goal
of making it really hard to get wrong, while also having a central place
to stick sanity checks.

Signed-off-by: Arjan van de Ven <arjan@...ux.intel.com>
Signed-off-by: Hans J. Koch <hjk@...utronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@...e.de>

---
 drivers/uio/uio_cif.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/drivers/uio/uio_cif.c
+++ b/drivers/uio/uio_cif.c
@@ -57,8 +57,7 @@ static int __devinit hilscher_pci_probe(
 	info->mem[0].addr = pci_resource_start(dev, 0);
 	if (!info->mem[0].addr)
 		goto out_release;
-	info->mem[0].internal_addr = ioremap(pci_resource_start(dev, 0),
-					     pci_resource_len(dev, 0));
+	info->mem[0].internal_addr = pci_ioremap_bar(dev, 0);
 	if (!info->mem[0].internal_addr)
 		goto out_release;
 


Patches currently in gregkh-2.6 which might be from arjan@...ux.intel.com are

usb/usb-use-pci_ioremap_bar-in-drivers-usb.patch
driver-core/uio-use-pci_ioremap_bar-in-drivers-uio.patch
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ