From: Artem Bityutskiy <dedekind@infradead.org>
To: Florin Malita <fmalita@gmail.com>
Cc: linux-mtd@lists.infradead.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] UBI: potential leak in ubi_scan_erase_peb
Date: Fri, 20 Jul 2007 10:25:57 +0300 [thread overview]
Message-ID: <1184916357.25822.2.camel@sauron> (raw)
In-Reply-To: <469FBA01.80107@gmail.com>
On Thu, 2007-07-19 at 15:22 -0400, Florin Malita wrote:
> Coverity (1769) found the following problem: if the erase counter
> overflow check triggers, ec_hdr is leaked.
>
> Moving the allocation after the overflow check should take care of it.
>
> Signed-off-by: Florin Malita <fmalita@gmail.com>
Committed, thank you!
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
prev parent reply other threads:[~2007-07-20 7:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-19 19:22 [PATCH] UBI: potential leak in ubi_scan_erase_peb Florin Malita
2007-07-20 7:25 ` Artem Bityutskiy [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=1184916357.25822.2.camel@sauron \
--to=dedekind@infradead.org \
--cc=fmalita@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.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