devfreq_cooling: return on allocation failure
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 Nov 2015 13:36:20 +0000 (16:36 +0300)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 7 Jul 2016 05:32:12 +0000 (14:32 +0900)
commit7b7f913b11b4dfb361ba87dbf405782eb64d5255
tree082b8ba3d8bdac0dfa88dd536592d4a24c4ca450
parent36b24c90ae727a84f90b2673ba79ef2e1c95da33
devfreq_cooling: return on allocation failure

If the allocation fails then we can't continue.

Fixes: a76caf55e5b3 ('thermal: Add devfreq cooling')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
[jy0922.shim: apply mainline patch]
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
drivers/thermal/devfreq_cooling.c