]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thermal: cpu_cooling: free power table on error or when unregistering
authorJavi Merino <javi.merino@arm.com>
Mon, 17 Aug 2015 18:21:43 +0000 (19:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:49:27 +0000 (14:49 -0700)
commitfd4480eec8745c2e6b2d7764df520217f1633912
tree1f14d56c7a8bfabe0c037a38bd654c3aefa36507
parent333126b347ace518c17ebef5ef18a1a7e6721858
thermal: cpu_cooling: free power table on error or when unregistering

commit eba4f88d5af84e0fcaa5d6eb4fe35a75c47203cb upstream.

The power table is not being freed on error from cpufreq_cooling
register or when unregistering.  Free it.

Fixes: c36cf0717631 ("thermal: cpu_cooling: implement the power cooling device API")
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thermal/cpu_cooling.c