devfreq_cooling: return on allocation failure
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 Nov 2015 13:36:20 +0000 (16:36 +0300)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 4 Nov 2015 19:06:29 +0000 (11:06 -0800)
commitce5ee1611284bef81d0308c6c2749902f55ed1d5
tree1173d116687b615799d1e6779c5d16163acf4ab9
parent7e38a5b1daa12cbaace3c76402999a84460df3e2
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>
drivers/thermal/devfreq_cooling.c