[PATCH 0/2] Fixes for cpu cooling
From: Javi Merino
Date: Mon Aug 17 2015 - 14:22:20 EST
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/