From: Kyle McMartin <kyle@hera.kernel.org>
To: linux-parisc@vger.kernel.org
Subject: [git] parisc: Changes to ref refs/heads/next
Date: Fri, 22 Oct 2010 01:05:16 +0000 [thread overview]
Message-ID: <201010220105.o9M15Ghv016986@hera.kernel.org> (raw)
New commits:
commit 338e4fab3d41aa14264e10ce505a7c908633cdad
Author: Julia Lawall <julia@diku.dk>
Date: Wed Oct 20 15:55:45 2010 -0700
drivers/char/agp/parisc-agp.c: eliminate memory leak
alloc_pci_dev allocates some memory, so that memory should be freed before
leaving the function in an error case.
A simplified version of the semantic match that finds this problem is:
(http://coccinelle.lip6.fr/)
// <smpl>
@r exists@
local idexpression x;
expression E;
identifier f1;
iterator I;
@@
x = alloc_pci_dev(...);
<... when != x
when != true (x == NULL || ...)
when != if (...) { <+...x...+> }
when != I (...) { <+...x...+> }
(
x == NULL
|
x == E
|
x->f1
)
...>
* return ...;
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Dan Carpenter <error27@gmail.com>
Dave Airlie <airlied@linux.ie>
Cc: Helge Deller <deller@gmx.de>
Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Kyle McMartin <kyle@redhat.com>
next reply other threads:[~2010-10-22 1:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-22 1:05 Kyle McMartin [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-10-22 1:27 [git] parisc: Changes to ref refs/heads/next Kyle McMartin
2010-10-14 5:31 Kyle McMartin
2010-03-06 22:58 Kyle McMartin
2009-12-26 18:21 Kyle McMartin
2009-12-16 3:49 Kyle McMartin
2009-11-14 5:12 Kyle McMartin
2009-08-05 0:41 Kyle McMartin
2009-08-04 15:23 Kyle McMartin
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=201010220105.o9M15Ghv016986@hera.kernel.org \
--to=kyle@hera.kernel.org \
--cc=linux-parisc@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;
as well as URLs for NNTP newsgroup(s).