From: Dave Jones <davej@redhat.com>
To: jsimmons@infradead.org
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: aty128fb dereference before null check
Date: Fri, 16 Apr 2004 22:22:05 +0100 [thread overview]
Message-ID: <20040416212205.GF25240@redhat.com> (raw)
--- 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)
reply other threads:[~2004-04-16 21:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040416212205.GF25240@redhat.com \
--to=davej@redhat.com \
--cc=jsimmons@infradead.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox