Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1208773
| From | Javi Merino <javi.merino@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 0/2] Fixes for cpu cooling |
| Date | 2015-08-17 20:30 +0200 |
| Message-ID | <pYxkt-6Ss-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 0/2] Fixes for cpu cooling Javi Merino <javi.merino@arm.com> - 2015-08-17 20:30 +0200 [PATCH 2/2] thermal: cpu_cooling: free power table on error or when unregistering Javi Merino <javi.merino@arm.com> - 2015-08-17 20:30 +0200 [PATCH 1/2] thermal: cpu_cooling: don't call kcalloc() under rcu_read_lock Javi Merino <javi.merino@arm.com> - 2015-08-17 20:30 +0200
csiph-web