Hi,

I found that pciserial_remove_one() only disables the device if it finds 
private data. This looks suspicious to me. Patch attached.

Eike

Signed-off-by: Rolf Eike Beer <[EMAIL PROTECTED]>

--- linux-2.6.13-rc3/drivers/serial/8250_pci.c  2005-07-13 06:46:46.000000000 
+0200
+++ linux-2.6.13-rc3-eike/drivers/serial/8250_pci.c     2005-07-20 
09:16:28.000000000 +0200
@@ -1778,10 +1778,10 @@ static void __devexit pciserial_remove_o
                if (quirk->exit)
                        quirk->exit(dev);
 
-               pci_disable_device(dev);
-
                kfree(priv);
        }
+
+       pci_disable_device(dev);
 }
 
 static int pciserial_suspend_one(struct pci_dev *dev, pm_message_t state)
-
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to