From: Dave Jones <davej@redhat.com>
To: adaplas@pol.net
Cc: linux-fbdev-devel@lists.sourceforge.net,
Geert Uytterhoeven <geert@linux-m68k.org>,
Linus Torvalds <torvalds@osdl.org>
Subject: Re: [PATCH] Fix possible leak in fbcon code. (fwd)
Date: Thu, 2 Sep 2004 21:53:27 +0100 [thread overview]
Message-ID: <20040902205327.GA26419@redhat.com> (raw)
In-Reply-To: <200409030439.36380.adaplas@hotpop.com>
On Fri, Sep 03, 2004 at 04:39:36AM +0800, Antonino A. Daplas wrote:
> On Thursday 02 September 2004 17:45, Geert Uytterhoeven wrote:
> > ---------- Forwarded message ----------
> > Date: Wed, 1 Sep 2004 16:51:22 +0100
> > From: Dave Jones <davej@redhat.com>
> > To: linux-kernel@vger.kernel.org
> > Subject: [PATCH] Fix possible leak in fbcon code.
> >
> > Spotted with the source checker from Coverity.com.
>
> No, I don't think there's a leak in the original code. It always passes
> through this part:
>
> if (save) {
> q = (unsigned short *) (vc->vc_origin +
> vc->vc_size_row *
> rows);
> scr_memcpyw(q, save, logo_lines * new_cols * 2);
> vc->vc_y += logo_lines;
> vc->vc_pos += logo_lines * vc->vc_size_row;
> kfree(save);
> }
>
> Tony
Ah, indeed you are correct. This code used to be wrapped inside
a if (!init), which if false, would have been a leak. That code
has been nuked since the coverity folks last did a run against
the tree.
I'll try and coerce the coverity folks into running against
something more recent when 2.6.9 comes out.
Linus, please drop the patch I sent you earlier against drivers/video/console/fbcon.c
Dave
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
prev parent reply other threads:[~2004-09-02 20:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-02 9:45 [PATCH] Fix possible leak in fbcon code. (fwd) Geert Uytterhoeven
2004-09-02 20:39 ` Antonino A. Daplas
2004-09-02 20:53 ` Dave Jones [this message]
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=20040902205327.GA26419@redhat.com \
--to=davej@redhat.com \
--cc=adaplas@pol.net \
--cc=geert@linux-m68k.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=torvalds@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.