All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Srivatsa S. Bhat" <srivatsa.bhat@linux.vnet.ibm.com>
To: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Dirk Brandewie <dirk.brandewie@gmail.com>,
	cpufreq <cpufreq@vger.kernel.org>,
	"Rafael J. Wysocki" <rjw@sisk.pl>,
	durgadoss.r@intel.com, "Jarzmik,
	Robert" <robert.jarzmik@intel.com>,
	tianyu.lan@intel.com
Subject: Re: [REGRESSION] Commit a66b2e50 "Preserve sysfs files across suspend/resume" causes a regression in intel_pstate
Date: Thu, 11 Jul 2013 12:52:24 +0530	[thread overview]
Message-ID: <51DE5D30.4080905@linux.vnet.ibm.com> (raw)
In-Reply-To: <CAOh2x=mK3q339Mnc26VgANTUF1M2zL9pjCsLFbMGbyMWkUmrAQ@mail.gmail.com>

On 07/11/2013 12:39 PM, Viresh Kumar wrote:
> On Thu, Jul 11, 2013 at 3:48 AM, Srivatsa S. Bhat
> <srivatsa.bhat@linux.vnet.ibm.com> wrote:
> 
> I haven't followed the minute details of this patch and will
> do that once you post it after testing it a bit.
> 
> BTW, I found a funny bug in there :)
> 
>>                 kfree(data);
>> +
>> +               if (remove_sysfs) {
>> +                       lock_policy_rwsem_read(cpu);
>> +                       kobj = &data->kobj;
>> +                       cmp = &data->kobj_unregister;
>> +                       unlock_policy_rwsem_read(cpu);
>> +                       kobject_put(kobj);
> 
> You just freed data and still want to use it later :)
> 

Yeah, Tianyu pointed that out to me in the other thread :)

http://marc.info/?l=linux-pm&m=137352402807997&w=2

... and I almost gave up trying to fix this mess, as I mentioned
there :-(

If you have any smart solutions in mind to get this right, do
share your thoughts! :)

Regards,
Srivatsa S. Bhat


  reply	other threads:[~2013-07-11  7:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-10 16:15 [REGRESSION] Commit a66b2e50 "Preserve sysfs files across suspend/resume" causes a regression in intel_pstate Dirk Brandewie
2013-07-10 22:04 ` Rafael J. Wysocki
2013-07-10 22:25   ` Srivatsa S. Bhat
2013-07-10 22:18 ` Srivatsa S. Bhat
2013-07-11  7:09   ` Viresh Kumar
2013-07-11  7:22     ` Srivatsa S. Bhat [this message]
2013-07-11  7:41       ` Viresh Kumar

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=51DE5D30.4080905@linux.vnet.ibm.com \
    --to=srivatsa.bhat@linux.vnet.ibm.com \
    --cc=cpufreq@vger.kernel.org \
    --cc=dirk.brandewie@gmail.com \
    --cc=durgadoss.r@intel.com \
    --cc=rjw@sisk.pl \
    --cc=robert.jarzmik@intel.com \
    --cc=tianyu.lan@intel.com \
    --cc=viresh.kumar@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.