lkml.org 
[lkml]   [2004]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectaty128fb dereference before null check

--- 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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.088 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site