public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* aty128fb dereference before null check
@ 2004-04-16 21:22 Dave Jones
  0 siblings, 0 replies; only message in thread
From: Dave Jones @ 2004-04-16 21:22 UTC (permalink / raw)
  To: jsimmons; +Cc: Linux Kernel


--- linux-2.6.5/drivers/video/aty/aty128fb.c~	2004-04-16 22:20:26.000000000 +0100
+++ linux-2.6.5/drivers/video/aty/aty128fb.c	2004-04-16 22:21:29.000000000 +0100
@@ -1998,11 +1998,13 @@
 static void __devexit aty128_remove(struct pci_dev *pdev)
 {
 	struct fb_info *info = pci_get_drvdata(pdev);
-	struct aty128fb_par *par = info->par;
+	struct aty128fb_par *par;
 
 	if (!info)
 		return;
 
+	par = info->par;
+
 	unregister_framebuffer(info);
 #ifdef CONFIG_MTRR
 	if (par->mtrr.vram_valid)

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

only message in thread, other threads:[~2004-04-16 21:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-16 21:22 aty128fb dereference before null check Dave Jones

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