mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.6.9-ac4] delkin_cb: one-liner fix
@ 2004-10-26  2:50 Mark Lord
  0 siblings, 0 replies; only message in thread
From: Mark Lord @ 2004-10-26  2:50 UTC (permalink / raw)
  To: Alan Cox; +Cc: Linux Kernel

[-- Attachment #1: Type: text/plain, Size: 269 bytes --]

Alan,

Here's a one-liner for delkin_cb in your latest 2.6.9-ac stream.
This ensures that pci_disable_device() is invoked when the
driver exits on failure to load.

Signed-off-by: Mark Lord <mlord@pobox.com>
-- 
Mark Lord
(hdparm keeper & the original "Linux IDE Guy")

[-- Attachment #2: delkin-fix.patch --]
[-- Type: text/plain, Size: 389 bytes --]

--- linux-2.6.9-ac3-delkin/drivers/ide/pci/delkin_cb.c.orig	2004-10-21 21:44:45.000000000 -0400
+++ linux/drivers/ide/pci/delkin_cb.c	2004-10-25 22:45:32.000000000 -0400
@@ -83,6 +83,7 @@
 	rc = ide_register_hw(&hw, &hwif);
 	if (rc < 0) {
 		printk(KERN_ERR "delkin_cb: ide_register_hw failed (%d)\n", rc);
+		pci_disable_device(dev);
 		return -ENODEV;
 	}
 	pci_set_drvdata(dev, hwif);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-26  3:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-26  2:50 [PATCH 2.6.9-ac4] delkin_cb: one-liner fix Mark Lord

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome