linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fixes for cpu cooling
@ 2015-08-17 18:21 Javi Merino
  2015-08-17 18:21 ` [PATCH 1/2] thermal: cpu_cooling: don't call kcalloc() under rcu_read_lock Javi Merino
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Javi Merino @ 2015-08-17 18:21 UTC (permalink / raw)
  To: linux-pm; +Cc: linux-kernel, Javi Merino

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-09-01  8:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-17 18:21 [PATCH 0/2] Fixes for cpu cooling Javi Merino
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).