From mboxrd@z Thu Jan 1 00:00:00 1970 From: Len Brown Subject: Re: [PATCH][ACPI] Let's not gamble that a possible double free will never happen in asus_hotk_get_info() Date: Fri, 3 Aug 2007 16:14:09 -0400 Message-ID: <200708031614.09792.lenb@kernel.org> References: <200707290045.59698.jesper.juhl@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <200707290045.59698.jesper.juhl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: acpi4asus-user-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: acpi4asus-user-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Jesper Juhl Cc: Karol Kozimor , acpi4asus-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Linux Kernel Mailing List , linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Julien Lerouge List-Id: linux-acpi@vger.kernel.org On Saturday 28 July 2007 18:45, Jesper Juhl wrote: > Signed-off-by: Jesper Juhl > --- > = > =A0drivers/acpi/asus_acpi.c | =A0 =A01 + > =A01 files changed, 1 insertions(+), 0 deletions(-) > = > diff --git a/drivers/acpi/asus_acpi.c b/drivers/acpi/asus_acpi.c > index 9c4bd22..86fd142 100644 > --- a/drivers/acpi/asus_acpi.c > +++ b/drivers/acpi/asus_acpi.c > @@ -1192,6 +1192,7 @@ static int asus_hotk_get_info(void) > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0b= reak; > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0default: > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0k= free(model); > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0mod= el =3D NULL; > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0b= reak; > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0} > =A0=A0=A0=A0=A0=A0=A0=A0} applied. coverity didn't find the bug below this code however. we can also leak model in the path that returns OK. thanks, -Len ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/