public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* rcpci45 dereference fix.
@ 2004-04-16 21:23 Dave Jones
  2004-04-16 20:45 ` Francois Romieu
  0 siblings, 1 reply; 4+ messages in thread
From: Dave Jones @ 2004-04-16 21:23 UTC (permalink / raw)
  To: jgarzik; +Cc: Linux Kernel

--- linux-2.6.5/drivers/net/rcpci45.c~	2004-04-16 22:22:22.000000000 +0100
+++ linux-2.6.5/drivers/net/rcpci45.c	2004-04-16 22:23:01.000000000 +0100
@@ -129,13 +129,14 @@
 rcpci45_remove_one (struct pci_dev *pdev)
 {
 	struct net_device *dev = pci_get_drvdata (pdev);
-	PDPA pDpa = dev->priv;
+	PDPA pDpa;
 
 	if (!dev) {
 		printk (KERN_ERR "%s: remove non-existent device\n",
 				dev->name);
 		return;
 	}
+	pDpa = dev->priv;
 
 	RCResetIOP (dev);
 	unregister_netdev (dev);

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-04-19 16:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-16 21:23 rcpci45 dereference fix Dave Jones
2004-04-16 20:45 ` Francois Romieu
2004-04-16 21:50   ` Dave Jones
2004-04-19 16:40     ` Jeff Garzik

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