From: Javi Merino <javi.merino@arm.com>
To: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Javi Merino <javi.merino@arm.com>
Subject: [PATCH 0/2] Fixes for cpu cooling
Date: Mon, 17 Aug 2015 19:21:41 +0100 [thread overview]
Message-ID: <1439835703-16470-1-git-send-email-javi.merino@arm.com> (raw)
Commit c36cf0717631 ("thermal: cpu_cooling: implement the power
cooling device API") introduced two bugs: a call to kcalloc() (that
might sleep) under RCU and not freeing the allocation when it's no
longer needed. This series fixes both issues.
Javi Merino (2):
thermal: cpu_cooling: don't call kcalloc() under rcu_read_lock
thermal: cpu_cooling: free power table on error or when unregistering
drivers/thermal/cpu_cooling.c | 52 ++++++++++++++++++++++++++-----------------
1 file changed, 31 insertions(+), 21 deletions(-)
--
1.9.1
next reply other threads:[~2015-08-17 18:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-17 18:21 Javi Merino [this message]
2015-08-17 18:21 ` [PATCH 1/2] thermal: cpu_cooling: don't call kcalloc() under rcu_read_lock Javi Merino
2015-08-17 18:21 ` [PATCH 2/2] thermal: cpu_cooling: free power table on error or when unregistering Javi Merino
2015-08-25 18:53 ` [PATCH 0/2] Fixes for cpu cooling Javi Merino
2015-09-01 8:31 ` Javi Merino
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=1439835703-16470-1-git-send-email-javi.merino@arm.com \
--to=javi.merino@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®