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>] [day] [month] [year] [list]
Date:	Mon, 23 Apr 2007 15:08:55 +0100
From:	Alan Cox <alan@...rguk.ukuu.org.uk>
To:	driver-support@...ric7.com, linux-kernel@...r.kernel.org
Subject: [PATCH] vioc_irq: Switch to pci refcount safe API

Signed-off-by: Alan Cox <alan@...hat.com>

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.21-rc6-mm1/drivers/net/vioc/vioc_irq.c linux-2.6.21-rc6-mm1/drivers/net/vioc/vioc_irq.c
--- linux.vanilla-2.6.21-rc6-mm1/drivers/net/vioc/vioc_irq.c	2007-04-12 14:15:05.000000000 +0100
+++ linux-2.6.21-rc6-mm1/drivers/net/vioc/vioc_irq.c	2007-04-23 12:01:53.354405384 +0100
@@ -233,8 +233,10 @@
 
 	devfn = PCI_DEVFN(slot, func);
 	/* Find pci_dev structure of the requested function */
-	dev = pci_find_slot(dev_in->bus->number, devfn);
+	dev = pci_get_bus_and_slot(dev_in->bus->number, devfn);
 	if (dev) {
+		int irq = dev->irq
+		pci_dev_put(dev);
 		return irq;
 	} else {
 		return VIOC_IRQ_NONE;
-
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