[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4C459CB1.8060800@redhat.com>
Date: Tue, 20 Jul 2010 08:55:13 -0400
From: Prarit Bhargava <prarit@...hat.com>
To: Xiaotian Feng <dfeng@...hat.com>
CC: cpufreq@...r.kernel.org, linux-kernel@...r.kernel.org,
Dave Jones <davej@...hat.com>, Thomas Renninger <trenn@...e.de>
Subject: Re: [PATCH] cpufreq: fix memory leak in cpufreq_add_dev
On 07/20/2010 08:11 AM, Xiaotian Feng wrote:
> diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
> index 063b218..12263b4 100644
> --- a/drivers/cpufreq/cpufreq.c
> +++ b/drivers/cpufreq/cpufreq.c
> @@ -1077,6 +1077,7 @@ err_out_unregister:
>
> err_unlock_policy:
> unlock_policy_rwsem_write(cpu);
> + free_cpumask_var(policy->related_cpus);
> err_free_cpumask:
> free_cpumask_var(policy->cpus);
> err_free_policy:
>
Seems right to me ...
P.
--
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