[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <82faac5b1002030333w6eea479sb9148a329c0eb441@mail.gmail.com>
Date: Wed, 3 Feb 2010 22:33:06 +1100
From: Darren Jenkins <darrenrjenkins@...il.com>
To: Alexey Starikovskiy <astarikovskiy@...e.de>
Cc: Kernel Janitors <kernel-janitors@...r.kernel.org>,
Len Brown <lenb@...nel.org>,
linux ACPI <linux-acpi@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] drivers/acpi/ec.c fix a small memory leak
Hello Alexey,
On Wed, Feb 3, 2010 at 2:35 AM, Alexey Starikovskiy
<astarikovskiy@...e.de> wrote:
> NAK
>
> saved_ec is allocated if flag EC_FLAGS_VALIDATE_ECDT is true.
> EC_FLAGS_SKIP_DSDT_SCAN have no sense in such case, thus this new code path
> is never executed.
>From what I can tell this is not guaranteed by the code, it is relying
on DMI data not matching two of the stings at once.
However I don't know anything about DMI, so if you say this makes no
sense and will never happen I am happy.
I will mark this as ignore in the Coverity databse.
> On the other hand, unconditionally freeing pointer, which is might be NULL, is not
> right either.
Nowadays this is the preferred method actually.
> Regards,
> Alex.
Thanks for the feedback.
Darren J
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists