[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <201007092153.55715.carlos@strangeworlds.co.uk>
Date: Fri, 9 Jul 2010 21:53:55 +0100
From: Carlos Corbacho <carlos@...angeworlds.co.uk>
To: Axel Lin <axel.lin@...il.com>
Cc: "linux-kernel" <linux-kernel@...r.kernel.org>,
Matthew Garrett <mjg@...hat.com>,
Thomas Renninger <trenn@...e.de>,
Alan Jenkins <alan-jenkins@...fmail.co.uk>,
platform-driver-x86@...r.kernel.org
Subject: Re: [PATCH] acer-wmi: fix memory leaks in wmab_execute error path
On Friday 09 July 2010 04:51:15 Axel Lin wrote:
> When acpi_evaluate_object() is passed ACPI_ALLOCATE_BUFFER,
> the caller must kfree the returned buffer if AE_OK is returned.
>
> Call Trace:
> wmab_execute
> -> wmi_evaluate_method
> -> acpi_evaluate_object
>
> Thus if callers of wmab_execute() pass ACPI_ALLOCATE_BUFFER,
> the return buffer must be kfreed if wmab_execute return AE_OK.
>
> Signed-off-by: Axel Lin <axel.lin@...il.com>
Acked-by: Carlos Corbacho <carlos@...angeworlds.co.uk>
--
E-Mail: carlos@...angeworlds.co.uk
Web: strangeworlds.co.uk
GPG Key ID: 0x23EE722D
--
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